Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
The Universal Packaging Tool
upt
Commits
3dfc1b4c
Commit
3dfc1b4c
authored
Feb 08, 2019
by
Cyril Roelandt
Browse files
Add support for coverage in our test runs.
parent
3f634370
Changes
2
Hide whitespace changes
Inline
Side-by-side
.coveragerc
0 → 100644
View file @
3dfc1b4c
[run]
branch = True
[report]
omit = upt/tests/*
fail_under = 90
tox.ini
View file @
3dfc1b4c
...
...
@@ -2,8 +2,14 @@
envlist
=
flake8,py36
[testenv]
deps
=
.[test]
commands
=
python -m unittest {posargs}
deps
=
coverage
.
[test]
commands
=
coverage
erase
coverage
run
--source
=
upt -m unittest {posargs}
coverage
html
coverage
report
[testenv:flake8]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment