test: udpate github flow

This commit is contained in:
debugtalk
2020-05-16 14:58:57 +08:00
parent 19df8b05fe
commit 1e61ceebae
2 changed files with 10 additions and 5 deletions
+5 -2
View File
@@ -35,6 +35,9 @@ jobs:
hrun har2case -h hrun har2case -h
pip install locustio pip install locustio
hrun locusts -h hrun locusts -h
- name: Run smoketest for hrun command - name: Run smoketest - postman echo
run: | run: |
cd tests/httpbin && hrun run basic.yml --failfast && cd - hrun examples/postman_echo/request_methods
- name: Run smoketest - httpbin
run: |
hrun examples/httpbin/
+5 -3
View File
@@ -27,9 +27,11 @@ jobs:
poetry install -vv poetry install -vv
- name: Run unittest for httprunner - name: Run unittest for httprunner
run: | run: |
poetry run python -m httprunner.cli -V poetry run httprunner
poetry run python -m httprunner.cli -h poetry run hmake
poetry run coverage run --source=httprunner -m unittest discover poetry run hrun
poetry run har2case
poetry run coverage run -m pytest httprunner
poetry run coverage xml poetry run coverage xml
poetry run coverage report -m poetry run coverage report -m
- name: Codecov - name: Codecov