Skip to content

Commit

Permalink
tests: tox: setup coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Scherf <[email protected]>
  • Loading branch information
fscherf authored and jluebbe committed Apr 23, 2018
1 parent c22594b commit 6ba1ac9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@
/.coverage
/dist
/.pytest_cache/
/htmlcov/
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ envlist = py34, py35, py36
[testenv]
deps = -rdev-requirements.txt
commands =
pytest tests {posargs}
pytest tests {posargs} \
--cov={envsitepackagesdir}/labgrid \
--cov-report=html:htmlcov

[testenv:lint]
deps = -rdev-requirements.txt
Expand Down

0 comments on commit 6ba1ac9

Please sign in to comment.