Skip to content

Instantly share code, notes, and snippets.

@msyaifullah
Created October 2, 2018 05:00
Show Gist options
  • Save msyaifullah/6607de861261b830b462214f27e0a1ac to your computer and use it in GitHub Desktop.
Save msyaifullah/6607de861261b830b462214f27e0a1ac to your computer and use it in GitHub Desktop.
coverage for flask python project
# =========================================================================
# COVERAGE CONFIGURATION FILE: .coveragerc
# =========================================================================
# LANGUAGE: Python
# SEE ALSO:
# * http://nedbatchelder.com/code/coverage/
# * http://nedbatchelder.com/code/coverage/config.html
# =========================================================================
[run]
# append = .coverage
# include = behave*
# source = behave
branch = True
parallel = False
omit =
venv/*
lib/*
tests/*
features/*
[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 False:
if __name__ == .__main__.:
omit =
venv/*
lib/*
tests/*
features/*
ignore_errors = True
[html]
directory = coverage.html
[xml]
output = coverage.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment