diff options
author | Ladue, David (dl3158) <dl3158@att.com> | 2019-03-21 18:30:01 -0400 |
---|---|---|
committer | Ladue, David (dl3158) <dl3158@att.com> | 2019-03-21 18:32:56 -0400 |
commit | decf06eb401587c22ede29fbf3da958ac166a638 (patch) | |
tree | 8d13f36fd0a531dec329b82b9cb01063ec540b08 /tests/.coveragerc | |
parent | 8e12680f279f50fc7a1ca01e66c003f6059ae754 (diff) |
increase pytest coverage4.0.0-ONAPdublin
Change-Id: I871f5fc3182e0a21b3b4c6d6e033abf8730c8d10
Issue-ID: DCAEGEN2-1264
Signed-off-by: Ladue, David (dl3158) <dl3158@att.com>
Diffstat (limited to 'tests/.coveragerc')
-rw-r--r-- | tests/.coveragerc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/.coveragerc b/tests/.coveragerc new file mode 100644 index 0000000..52aa0ac --- /dev/null +++ b/tests/.coveragerc @@ -0,0 +1,23 @@ +[run] +# omit = snmptrap/setup.py,snmptrap/tests/*.py +omit = snmptrap/setup.py + +[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__.: + +ignore_errors = True |