Chromium Code Reviews

Unified Diff: infra_libs/.coveragerc

Issue 1917383002: test.py: compute coverage per top-level module. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Addressing comments, and more polishing Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « infra/.coveragerc ('k') | test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra_libs/.coveragerc
diff --git a/infra_libs/.coveragerc b/infra_libs/.coveragerc
new file mode 100644
index 0000000000000000000000000000000000000000..b041e2e6dbbecc8e7a083148ee03aae44d3d01b1
--- /dev/null
+++ b/infra_libs/.coveragerc
@@ -0,0 +1,22 @@
+[run]
+include = ./infra_libs/*
+
+[report]
+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 __name__ == ['"]__main__['"]:
+
+[expect_tests]
+expected_coverage_min = 100
« no previous file with comments | « infra/.coveragerc ('k') | test.py » ('j') | no next file with comments »

Powered by Google App Engine