summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2017-10-24 07:17:11 -0400
committerNed Batchelder <ned@nedbatchelder.com>2017-10-24 07:17:11 -0400
commit73ef0bb6a134c1acb1df30851db09a5825d0301a (patch)
tree4aa97d5ad6976c031d9948a3c05c62b9ddd6b75e /doc
parentac4baedace2a6bcd790a293da02f9cc59729c2a7 (diff)
downloadpython-coveragepy-git-73ef0bb6a134c1acb1df30851db09a5825d0301a.tar.gz
Add the latest warning to the docs, and give them consistent punctuation
Diffstat (limited to 'doc')
-rw-r--r--doc/cmd.rst8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/cmd.rst b/doc/cmd.rst
index dc703536..8dbe56e3 100644
--- a/doc/cmd.rst
+++ b/doc/cmd.rst
@@ -165,12 +165,18 @@ could affect the measurement process. The possible warnings include:
This could be because you asked to measure only modules that never ran,
or for other reasons.
-* "Module XXX was previously imported, but not measured. (module-not-measured)"
+* "Module XXX was previously imported, but not measured (module-not-measured)"
You asked coverage.py to measure module XXX, but it had already been imported
when coverage started. This meant coverage.py couldn't monitor its
execution.
+* "--include is ignored because --source is set (include-ignored)"
+
+ Both ``--include`` and ``--source`` were specified while running code. Both
+ are meant to focus measurement on a particular part of your source code, so
+ ``--include`` is ignored in favor of ``--source``.
+
Individual warnings can be disabled with the `disable_warnings
<config_run_disable_warnings>`_ configuration setting. To silence "No data was
collected," add this to your .coveragerc file::