mirror of https://github.com/zulip/zulip.git
coverage: Move coverage config to tools/coveragerc.
This commit is contained in:
parent
63664264b8
commit
bc0cd7eb90
|
@ -0,0 +1,11 @@
|
|||
[report]
|
||||
# Regexes for lines to exclude from consideration
|
||||
exclude_lines =
|
||||
# Re-enable the standard coverage pragma
|
||||
pragma: no cover
|
||||
|
||||
[run]
|
||||
omit =
|
||||
*/zulip-venv-cache/*
|
||||
*/migrations/*
|
||||
*/management/commands/*
|
|
@ -230,9 +230,7 @@ if __name__ == "__main__":
|
|||
|
||||
if options.coverage:
|
||||
import coverage
|
||||
cov = coverage.Coverage(omit=["*/zulip-venv-cache/*",
|
||||
"*/migrations/*",
|
||||
"*/management/commands/*"])
|
||||
cov = coverage.Coverage(config_file="tools/coveragerc")
|
||||
cov.start()
|
||||
if options.profile:
|
||||
import cProfile
|
||||
|
|
Loading…
Reference in New Issue