Skip to content
Snippets Groups Projects
Commit 9e2dce6e authored by Cyril Moineau's avatar Cyril Moineau
Browse files

Change covergae to use pytest.

parent 9b322c26
No related branches found
No related tags found
No related merge requests found
......@@ -91,7 +91,7 @@ coverage:ubuntu_python:
- cd ${CI_PROJECT_NAME}
# Retrieve the installation path of the module, since it is installed with pip.
- export MODULE_LOCATION=`python -c "import ${CI_PROJECT_NAME} as _; print(_.__path__[0])"`
- python -m coverage run --source=$MODULE_LOCATION -m unittest discover -s unit_tests/ -v -b
- python -m coverage run --source=$MODULE_LOCATION -m pytest unit_tests/ -v
- python -m coverage report
- python -m coverage xml
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.
Finish editing this message first!
Please register or to comment