Files
zulip/tools/coveragerc
Steve Howell df4b306c20 coveragerc: Exclude zerver/tornado/ioloop_logging.py.
The file ioloop_logging.py is pretty small, but it seems to have
flaky time-sensitive code that creates noise for coverage deltas
when we do builds.  Since it's small, we just exclude it.

Tweaked by tabbott to add comments.
2017-07-05 15:07:52 -07:00

31 lines
1023 B
Plaintext

[report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Re-enable the standard coverage pragma
nocoverage
# Don't complain if non-runnable code isn't run:
if False:
# Don't require coverage for base class NotImplementedErrors
raise NotImplementedError()
# Don't require coverage for test suite AssertionError -- they're usually for clarity
raise AssertionError
# Don't require coverage for Python 2/3 variations; it's impossible to cover on both
if six.PY3:
if six.PY2:
# Don't require coverage for __unicode__ statements just used for printing
def __unicode__[(]self[)]:
[run]
omit =
*/zulip-venv-cache/*
*/migrations/*
*/management/commands/*
# Parts of the test runner infrastructure
tools/test-backend
zerver/lib/test_fixtures.py
zerver/lib/test_runner.py
# Excluded because its coverage state is flaky.
zerver/tornado/ioloop_logging.py
# Zulip's library for use in scripts
scripts/lib/zulip_tools.py