Skip to content

Commit

Permalink
ci: Fixed coverage run options
Browse files Browse the repository at this point in the history
Something changed in coverage making the coverage data to disappear.
Added the option --cov-append when running pytest to avoid the data to
vanish.

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
  • Loading branch information
ansasaki committed Oct 26, 2018
1 parent 357b121 commit 246a48e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions Makefile
Expand Up @@ -74,8 +74,7 @@ test-all: tox.ini## run tests on every Python version with tox
tox

coverage: ## check code coverage quickly with the default Python
py.test --cov=abimap --cov-config .coveragerc --cov-report=term-missing -vv tests
coverage combine --append
py.test --cov=abimap --cov-append --cov-config .coveragerc --cov-report=term-missing -vv tests
coverage report
coverage html
$(BROWSER) htmlcov/index.html
Expand Down
3 changes: 1 addition & 2 deletions ci/templates/tox.ini
Expand Up @@ -26,7 +26,7 @@ deps =
commands =
make bootstrap-tests
nocov: {posargs:py.test -vv --ignore=src}
cover: {posargs:py.test --cov --cov-report=term-missing -vv}
cover: {posargs:py.test --cov --cov-append --cov-report=term-missing -vv}

[testenv:bootstrap]
deps =
Expand Down Expand Up @@ -97,7 +97,6 @@ deps = coverage
skip_install = true
usedevelop = false
commands =
coverage combine --append
coverage report
coverage html

Expand Down
3 changes: 1 addition & 2 deletions tox.ini
Expand Up @@ -26,7 +26,7 @@ deps =
commands =
make bootstrap-tests
nocov: {posargs:py.test -vv --ignore=src}
cover: {posargs:py.test --cov --cov-report=term-missing -vv}
cover: {posargs:py.test --cov --cov-append --cov-report=term-missing -vv}

[testenv:bootstrap]
deps =
Expand Down Expand Up @@ -97,7 +97,6 @@ deps = coverage
skip_install = true
usedevelop = false
commands =
coverage combine --append
coverage report
coverage html

Expand Down

0 comments on commit 246a48e

Please sign in to comment.