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

View File

@@ -35,6 +35,9 @@ jobs:
hrun har2case -h
pip install locustio
hrun locusts -h
- name: Run smoketest for hrun command
- name: Run smoketest - postman echo
run: |
cd tests/httpbin && hrun run basic.yml --failfast && cd -
hrun examples/postman_echo/request_methods
- name: Run smoketest - httpbin
run: |
hrun examples/httpbin/

View File

@@ -27,9 +27,11 @@ jobs:
poetry install -vv
- name: Run unittest for httprunner
run: |
poetry run python -m httprunner.cli -V
poetry run python -m httprunner.cli -h
poetry run coverage run --source=httprunner -m unittest discover
poetry run httprunner
poetry run hmake
poetry run hrun
poetry run har2case
poetry run coverage run -m pytest httprunner
poetry run coverage xml
poetry run coverage report -m
- name: Codecov