Add missing pytest flag to enable Python code coverage (#5923)

Add removed coverage flag #5860
This commit is contained in:
Armen Zambrano 2020-02-04 08:09:23 -05:00 коммит произвёл GitHub
Родитель 2dba57663f
Коммит c9d0ec610e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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/