Skip to content

Commit

Permalink
Fixed coverage calculation
Browse files Browse the repository at this point in the history
Doing this with the pytest plugin causes a lot of lines to be missed.
  • Loading branch information
agronholm committed Jun 6, 2020
1 parent 068e7b3 commit 1b6edbd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ typeguard = py.typed
[options.extras_require]
test =
pytest
pytest-cov
typing_extensions
doc =
sphinx_rtd_theme
Expand All @@ -44,7 +43,7 @@ pytest11 =
typeguard = typeguard.pytest_plugin

[tool:pytest]
addopts = -rsx --cov --tb=short
addopts = -rsx --tb=short
testpaths = tests

[coverage:run]
Expand Down
5 changes: 4 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ isolated_build = true

[testenv]
extras = test
commands = python -m pytest {posargs}
deps = coverage
commands =
coverage run -m pytest {posargs}
coverage report

[testenv:flake8]
deps = flake8
Expand Down

0 comments on commit 1b6edbd

Please sign in to comment.