Commit f2b0b96a authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

Merge branch 'have-coverage' into 'dockerizing-app'

return the coverage to gitlab

See merge request !41
parents 138409a0 b0431b21
Pipeline #83471 passed with stages
in 6 minutes and 11 seconds
......@@ -32,8 +32,14 @@ test-style:
-v $(pwd)/persistent:/code/persistent
"$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG/web-container:$CI_COMMIT_SHA"
test
- mv persistent/coverage.xml coverage.xml
- mv persistent/htmlcov htmlcov
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml
paths:
- htmlcov/*
- persistent/tests_http_cache.sqlite
......
......@@ -21,4 +21,7 @@ omit =
venv/*
[html]
directory = persistent/htmlcov
\ No newline at end of file
directory = persistent/htmlcov
[xml]
output = persistent/coverage.xml
\ No newline at end of file
......@@ -29,6 +29,7 @@ if [ "$1" == "test" ]; then
coverage run || exit 3
coverage combine
coverage report --skip-covered --omit=*/wsgi.py,*/asgi.py,manage.py,*/apps.py
coverage xml
coverage html --omit=*/wsgi.py,*/asgi.py,manage.py,*/apps.py
exit 0
fi
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment