summaryrefslogtreecommitdiffstats
path: root/.coveragerc
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2016-11-30 06:21:53 +0100
committerGitHub <noreply@github.com>2016-11-30 06:21:53 +0100
commit6bbd92e422fcba608cd00ddd38a4c1f03dca301a (patch)
tree6cd5b7cacb78ddadb41ffe45b5f4ea9c7a1cac79 /.coveragerc
parentbump submodule refs (diff)
downloadansible-6bbd92e422fcba608cd00ddd38a4c1f03dca301a.tar.xz
ansible-6bbd92e422fcba608cd00ddd38a4c1f03dca301a.zip
Initial ansible-test implementation. (#18556)
Diffstat (limited to '.coveragerc')
-rw-r--r--.coveragerc24
1 files changed, 21 insertions, 3 deletions
diff --git a/.coveragerc b/.coveragerc
index 812fc3b139..848e804c42 100644
--- a/.coveragerc
+++ b/.coveragerc
@@ -1,4 +1,22 @@
-[report]
+# This configuration file is used for manual execution of coverage
+# as well as for tests run through ansible-test.
+
+[run]
+branch = True
+
+# Enable concurrency. This also enables parallel mode, which results in
+# multiple coverage files being created. Concurrency allows us to collect
+# results from multiple tests simultaneously, as well as supporting multiple
+# test runs, such as from integration tests.
+concurrency = multiprocessing
+
+# When running tests through ansible-test, this option is overridden by
+# the COVERAGE_FILE environment variable. This option is present for
+# convenience when running coverage manually from this directory.
+data_file = test/results/coverage/coverage
+
+# Don't collect or report code coverage from files matching these patterns.
omit =
- */python?.?/*
- */site-packages/nose/*
+ */python*/dist-packages/*
+ */python*/site-packages/*
+ */pytest