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