From 0e5286c7d3bbd919838cd063a65ddf64bb7b285c Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Wed, 2 Mar 2016 13:35:43 -0800 Subject: [PATCH] .coveragerc: better config --- .coveragerc | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.coveragerc b/.coveragerc index e4f9d36..e265572 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,3 +1,18 @@ [run] -include = src/wormhole/* +# only record trace data for wormhole.* +source = wormhole +# and don't trace the test files themselves omit = src/wormhole/test/* + +# This allows 'coverage combine' to correlate the tracing data built while +# running tests in multiple tox virtualenvs. To take advantage of this +# properly, use "coverage erase" before tox, "coverage run --parallel-mode" +# inside tox to avoid overwriting the output data (by writing it into +# .coverage-XYZ instead of just .coverage), and run "coverage combine" +# afterwards. + +[paths] +source = + src/ + .tox/*/lib/python*/site-packages/ + .tox/pypy*/site-packages/