~verterok/ubuntuone-client/tritcask-fix-825366-stable-3-0

« back to all changes in this revision

Viewing changes to .coveragerc

  • Committer: Stuart Colville
  • Date: 2010-04-30 14:30:34 UTC
  • mto: This revision was merged to the branch mainline in revision 516.
  • Revision ID: stuart.colville@canonical.com-20100430143034-y0jac2euq879fj5b
Added make test-coverage and .coveragerc

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# .coveragerc to control coverage.py
 
2
[run]
 
3
branch = True
 
4
 
 
5
[report]
 
6
# Regexes for lines to exclude from consideration
 
7
exclude_lines =
 
8
    # Have to re-enable the standard pragma
 
9
    pragma: no cover
 
10
 
 
11
    # Don't complain about missing debug-only code:
 
12
    def __repr__
 
13
    if self\.debug
 
14
 
 
15
    # Don't complain if tests don't hit defensive assertion code:
 
16
    raise AssertionError
 
17
    raise NotImplementedError
 
18
 
 
19
    # Don't complain if non-runnable code isn't run:
 
20
    if 0:
 
21
    if __name__ == .__main__.:
 
22
 
 
23
ignore_errors = True
 
24
 
 
25
omit =
 
26
    /usr
 
27
    tests