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

Ensure gitlab badge code coverage percentage works

parent 4124c594
No related branches found
No related tags found
1 merge request!18CWG-57: Ensure gitlab badge code coverage percentage works
Pipeline #49148 passed
......@@ -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={{cookiecutter.project_slug}}
{envpython} -m pytest --cover-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