Commit 3dfc1b4c authored by Cyril Roelandt's avatar Cyril Roelandt
Browse files

Add support for coverage in our test runs.

parent 3f634370
branch = True
omit = upt/tests/*
fail_under = 90
...@@ -2,8 +2,14 @@ ...@@ -2,8 +2,14 @@
envlist=flake8,py36 envlist=flake8,py36
[testenv] [testenv]
deps = .[test] deps =
commands = python -m unittest {posargs} coverage
commands =
coverage erase
coverage run --source=upt -m unittest {posargs}
coverage html
coverage report
[testenv:flake8] [testenv:flake8]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment