Skip to content
Snippets Groups Projects
Verified Commit 1fbf0ef8 authored by Björn Ludwig's avatar Björn Ludwig
Browse files

chore(pytest): activate branch coverage for both and actually all test suite runs

parent 9371fc17
No related branches found
No related tags found
No related merge requests found
......@@ -47,8 +47,8 @@ quick-test:
- if: $CI_COMMIT_TAG == null
script:
- *install-dev-deps
- pytest -m "not webtest" --verbose --cov=pytorch_gum_uncertainty_propagation
--junitxml=junit.xml --cov-branch
- pytest -m "not webtest" --cov=pytorch_gum_uncertainty_propagation
--junitxml=junit.xml
- coverage xml
- *install-reporter-and-upload-to-codecov
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
......@@ -69,7 +69,7 @@ online-test:
- if: $CI_COMMIT_TAG == null
script:
- *install-dev-deps
- pytest -m webtest --verbose --cov=pytorch_gum_uncertainty_propagation
- pytest -m webtest --cov=pytorch_gum_uncertainty_propagation
--junitxml=junit.xml
- coverage xml
- *install-reporter-and-upload-to-codecov
......
......@@ -75,7 +75,7 @@ license-files = ["LICENSE"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
addopts = "--strict-markers --suppress-no-test-exit-code --color=yes"
addopts = "--strict-markers --suppress-no-test-exit-code --color=yes --cov-branch -v"
filterwarnings = "error"
markers = "webtest: mark a test as requiring internet connecttion"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment