зеркало из https://github.com/mozilla/treeherder.git
Add missing pytest flag to enable Python code coverage (#5923)
Add removed coverage flag #5860
This commit is contained in:
Родитель
2dba57663f
Коммит
c9d0ec610e
|
@ -54,7 +54,7 @@ matrix:
|
|||
# value so the tests pass. The real environment variable will be checked during deployment.
|
||||
- docker-compose run -e SITE_URL=https://treeherder.dev -e TREEHERDER_DEBUG=False backend python -bb ./manage.py check --deploy --fail-level WARNING
|
||||
# Using `-bb` mode to surface BytesWarnings: https://docs.python.org/3.7/using/cmdline.html#cmdoption-b
|
||||
- docker-compose run backend bash -c "pytest --cov-report=xml tests/ --runslow --ignore=tests/selenium"
|
||||
- docker-compose run backend bash -c "pytest --cov --cov-report=xml tests/ --runslow --ignore=tests/selenium"
|
||||
after_success:
|
||||
- codecov -f coverage.xml
|
||||
|
||||
|
@ -75,7 +75,7 @@ matrix:
|
|||
- yarn build
|
||||
script:
|
||||
# Using `-bb` mode to surface BytesWarnings: https://docs.python.org/3.7/using/cmdline.html#cmdoption-b
|
||||
- docker-compose run backend bash -c "pytest --cov-report=xml tests/selenium/"
|
||||
- docker-compose run backend bash -c "pytest --cov --cov-report=xml tests/selenium/"
|
||||
after_success:
|
||||
- codecov -f coverage.xml
|
||||
|
||||
|
|
|
@ -27,4 +27,4 @@ echo "Running Django system checks"
|
|||
SITE_URL="https://treeherder.dev" TREEHERDER_DEBUG="False" python -bb ./manage.py check --deploy --fail-level WARNING
|
||||
|
||||
echo "Running Python tests"
|
||||
pytest --cov-report=xml tests/
|
||||
pytest --cov --cov-report=xml tests/
|
||||
|
|
Загрузка…
Ссылка в новой задаче