Skip to content

Commit

Permalink
tests: fix pytest 6.x coverage (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
thijstriemstra committed Oct 27, 2020
1 parent d40739e commit 879d6af
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
[run]
source = luma.core
omit =
luma/__init__.py
setup.py
.tox/*
doc/*
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def find_version(*file_paths):
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
pytest_runner = ['pytest-runner'] if needs_pytest else []
test_deps = [
"pytest==4.5",
"pytest",
"pytest-cov",
"pytest-timeout"
]
Expand Down
6 changes: 4 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ envlist = py{36,37,38,39},qa,doc
skip_missing_interpreters = True

[testenv]
usedevelop = true
setenv =
PYTHONDEVMODE=1
commands =
coverage erase
python setup.py install
coverage run -m py.test
coverage report
pytest --cov=luma
coverage html
deps = .[test]

[testenv:qa]
Expand Down

0 comments on commit 879d6af

Please sign in to comment.