From ae4c01dd21bcecd1f001277436f61b92cd5dfd7d Mon Sep 17 00:00:00 2001 From: vtexier <vit@free.fr> Date: Wed, 19 Jun 2019 19:09:46 +0200 Subject: [PATCH] [fix] #98 fix coverage test command line in gitlab-ci Add coverage report for a future nice badge in README --- .gitlab-ci.yml | 4 +++- Makefile | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 02902af8..9274de96 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -65,7 +65,9 @@ test: script: - pip install coveralls - pip install -r requirements.txt - - coverage run --source=duniterpy setup.py test + - coverage run -m unittest + - coverage report -m + coverage: '/TOTAL.+ ([0-9]{1,3}%)/' check: <<: *pyenv diff --git a/Makefile b/Makefile index 5de03c5a..0dbd793d 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ docs: # run tests tests: - python3 -m unittest ${TESTS_FILTER} + python3 -m ${TESTS_FILTER} # check check: mypy pylint check-format -- GitLab