Skip to content
Snippets Groups Projects
Commit 1e7bb553 authored by Corné Lukken's avatar Corné Lukken
Browse files

Ensure gitlab badge code coverage percentage works

parent f218d41b
No related branches found
No related tags found
No related merge requests found
......@@ -50,6 +50,7 @@ run_unit_tests_coverage:
image: python:3.7
script:
- tox -e coverage
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts:
reports:
coverage_report:
......
......@@ -22,7 +22,7 @@ commands =
[testenv:coverage]
commands =
{envpython} --version
{envpython} -m pytest --cov-report xml --cov-report html --cov-report xml:coverage.xml --cov={{cookiecutter.project_slug}}
{envpython} -m pytest --cov-report term --cov-report xml --cov-report html --cov={{cookiecutter.project_slug}}
# Use generative name and command prefixes to reuse the same virtualenv
# for all linting jobs.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment