Skip to content
Snippets Groups Projects
Commit 0413cf7b authored by Bastien Abadie's avatar Bastien Abadie Committed by Yoann Schneider
Browse files

Add unit test coverage

parent 36569dcc
No related branches found
No related tags found
1 merge request!28Add unit test coverage
Pipeline #158148 failed
......@@ -2,3 +2,4 @@
*.egg-info/
__pycache__
.tox
.coverage
......@@ -10,7 +10,7 @@ cache:
linter:
stage: test
image: python:3
image: python:3.10
cache:
paths:
......@@ -31,7 +31,7 @@ linter:
tests:
stage: test
image: python:3
image: python:3.10
cache:
paths:
......@@ -43,6 +43,9 @@ tests:
script:
- tox
# Process coverage report so that it shows up in Gitlab interface
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
bump-python-deps:
stage: release
image: registry.gitlab.teklia.com/infra/devops:latest
......
[tox]
envlist = nerval
[tool:pytest]
testpaths = tests
addopts =
--cov-report=term-missing
[testenv]
commands =
pytest {posargs}
pytest --cov=nerval {posargs}
deps =
pytest
pytest-lazy-fixture
pytest-cov
-rrequirements.txt
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