summaryrefslogtreecommitdiff
path: root/doc/cmd.rst
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2018-02-20 08:26:35 -0500
committerNed Batchelder <ned@nedbatchelder.com>2018-02-20 08:26:35 -0500
commit6c9ac4a84b53a2d8ca36c3cdc5decd965d24b04d (patch)
treecae760076642eebd5478e0478c6df97f052ac04d /doc/cmd.rst
parent5b3c821cd1633f1e64bebc2e61060677bceb200e (diff)
downloadpython-coveragepy-git-6c9ac4a84b53a2d8ca36c3cdc5decd965d24b04d.tar.gz
A new warning for files already imported before coverage starts
Diffstat (limited to 'doc/cmd.rst')
-rw-r--r--doc/cmd.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/cmd.rst b/doc/cmd.rst
index ef4c1135..baf1ca08 100644
--- a/doc/cmd.rst
+++ b/doc/cmd.rst
@@ -171,6 +171,13 @@ could affect the measurement process. The possible warnings include:
when coverage started. This meant coverage.py couldn't monitor its
execution.
+* "Already imported a file that will be measured: XXX (already-imported)"
+
+ File XXX had already been imported when coverage.py started measurement. Your
+ setting for ``--source`` or ``--include`` indicates that you wanted to
+ measure that file. Lines will be missing from the coverage report since the
+ execution during import hadn't been measured.
+
* "--include is ignored because --source is set (include-ignored)"
Both ``--include`` and ``--source`` were specified while running code. Both