Alex Shatov | 9144f04 | 2017-09-22 17:34:48 -0400 | [diff] [blame] | 1 | # .coveragerc to control coverage.py |
| 2 | [run] |
| 3 | branch = True |
| 4 | cover_pylib = False |
Alex Shatov | 2d452d1 | 2017-09-26 17:38:12 -0400 | [diff] [blame] | 5 | include = */policyhandler/*.py |
| 6 | omit = |
| 7 | # omit client libs |
| 8 | policyhandler/PolicyEngine.py |
| 9 | policyhandler/onap/CommonLogger.py |
Alex Shatov | 9144f04 | 2017-09-22 17:34:48 -0400 | [diff] [blame] | 10 | |
| 11 | [report] |
| 12 | # Regexes for lines to exclude from consideration |
| 13 | exclude_lines = |
| 14 | # Have to re-enable the standard pragma |
| 15 | pragma: no cover |
| 16 | |
| 17 | # Don't complain about missing debug-only code: |
| 18 | def __repr__ |
| 19 | if self\.debug |
| 20 | |
| 21 | # Don't complain if tests don't hit defensive assertion code: |
| 22 | raise AssertionError |
| 23 | raise NotImplementedError |
| 24 | |
| 25 | # Don't complain if non-runnable code isn't run: |
| 26 | if 0: |
| 27 | if __name__ == .__main__.: |
| 28 | |
| 29 | ignore_errors = True |
| 30 | |
| 31 | [xml] |
| 32 | output = coverage-reports/coverage-policyhandler.xml |
| 33 | |