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
Branches
No related tags found
No related merge requests found
...@@ -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