Coverage: Exclude migrations and management commands.

These are not particularly interesting to measure test coverage for,
since migrations are not run as the part of the test suite by
construction, and management commands aren't being tested by this test
suite.
This commit is contained in:
Tim Abbott 2016-11-06 18:28:26 -08:00
parent 11518d9fb3
commit 44767c59a2
1 changed files with 3 additions and 1 deletions

View File

@ -142,7 +142,9 @@ if __name__ == "__main__":
if options.coverage:
import coverage
cov = coverage.Coverage(omit="*/zulip-venv-cache/*")
cov = coverage.Coverage(omit=["*/zulip-venv-cache/*",
"*/migrations/*",
"*/management/commands/*"])
cov.start()
if options.profile:
import cProfile