mirror of
https://github.com/robmcmullen/atrcopy.git
synced 2024-11-25 01:32:06 +00:00
Added automatic pytest coverage annotated HTML report
* added automatic coverage branch warnings and ignorable statements
This commit is contained in:
parent
5c26b02c7e
commit
5fcb646131
20
test/.coveragerc
Normal file
20
test/.coveragerc
Normal file
@ -0,0 +1,20 @@
|
||||
[run]
|
||||
branch = True
|
||||
|
||||
[report]
|
||||
# Regexes for lines to exclude from consideration
|
||||
exclude_lines =
|
||||
# Have to re-enable the standard pragma
|
||||
pragma: no cover
|
||||
|
||||
# Don't complain about missing debug-only code:
|
||||
def __repr__
|
||||
if self\.debug
|
||||
|
||||
# Don't complain if tests don't hit defensive assertion code:
|
||||
raise AssertionError
|
||||
raise NotImplementedError
|
||||
|
||||
# Don't complain if non-runnable code isn't run:
|
||||
if 0:
|
||||
if __name__ == .__main__.:
|
2
test/pytest.ini
Normal file
2
test/pytest.ini
Normal file
@ -0,0 +1,2 @@
|
||||
[pytest]
|
||||
addopts = --cov=atrcopy --cov-report html --cov-report term
|
Loading…
Reference in New Issue
Block a user