Skip to content
Snippets Groups Projects
Commit dfd48ae0 authored by Benjamin Hättasch's avatar Benjamin Hättasch
Browse files

Make sure coverage is computed after failed tests, too

parent 8442afd8
No related branches found
No related tags found
1 merge request!141Add view tests
Pipeline #126949 passed
This commit is part of merge request !141. Comments created here will be created in the context of that merge request.
...@@ -37,6 +37,8 @@ test: ...@@ -37,6 +37,8 @@ test:
- echo "GRANT ALL on *.* to '${MYSQL_USER}';"| mysql -u root --password="${MYSQL_ROOT_PASSWORD}" -h mysql - echo "GRANT ALL on *.* to '${MYSQL_USER}';"| mysql -u root --password="${MYSQL_ROOT_PASSWORD}" -h mysql
- pip install pytest-cov unittest-xml-reporting - pip install pytest-cov unittest-xml-reporting
- coverage run --source='.' manage.py test --settings AKPlanning.settings_ci - coverage run --source='.' manage.py test --settings AKPlanning.settings_ci
after_script:
- source venv/bin/activate
- coverage report - coverage report
- coverage xml - coverage xml
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/' coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment