Test coverage: Switch to covertool to get cobertura output

This allows to have coverage information integrated into Gitlab
This commit is contained in:
Haelwenn (lanodan) Monnier 2022-09-03 04:57:53 +02:00
commit be411ad3bc
4 changed files with 11 additions and 6 deletions

View file

@ -84,7 +84,13 @@ unit-testing:
script:
- mix ecto.create
- mix ecto.migrate
- mix coveralls --preload-modules
- mix test --cover --preload-modules
coverage: '/^Line total: ([^ ]*%)$/'
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml
unit-testing-erratic:
stage: test