Skip to content
Snippets Groups Projects
.coveragerc 1.35 KiB
[run]
source =
    _zkapauthorizer
    twisted.plugins.zkapauthorizer

# Measuring branch coverage is slower (so the conventional wisdom goes) but
# too bad: it's an important part of the coverage information.
branch = True

# Whether or not we actually collect coverage information in parallel, we need
# to have the coverage data files written according to the "parallel" naming
# scheme so that we can use "coverage combine" later to rewrite paths in the
# coverage report.
parallel = True

omit =
# The Versioneer version file in the repository is generated by
# Versioneer.  Let's call it Versioneer's responsibility to ensure it
# works and not pay attention to our test suite's coverage of it.  Also,
# the way Versioneer works is that the source file in the repository is
# different from the source file in an installation - which is where we
# measure coverage.  When the source files differ like this, it's very
# difficult to produce a coherent coverage report (measurements against
# one source file are meaningless when looking at a different source
# file).
    */_zkapauthorizer/_version.py

[paths]
source =
# It looks like this in the checkout
    src/
# It looks like this in the Nix build environment
    /nix/store/*/lib/python*/site-packages/
# It looks like this in the Windows build environment
    C:\hostedtoolcache\windows\Python\2.7.18\x64\Lib\site-packages\