summaryrefslogtreecommitdiff
path: root/doc/source.rst
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2014-12-17 08:50:16 -0500
committerNed Batchelder <ned@nedbatchelder.com>2014-12-17 08:50:16 -0500
commit0dd9c8fb84dab988f1e34421bb91d53d45da807b (patch)
tree4cafa9312524c657db79043c10ff76b2f8c74cf4 /doc/source.rst
parent8d10339238d0115225245d2b9a90579f329ec22f (diff)
downloadpython-coveragepy-0dd9c8fb84dab988f1e34421bb91d53d45da807b.tar.gz
Clarify what files are considered by --source.
Diffstat (limited to 'doc/source.rst')
-rw-r--r--doc/source.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/source.rst b/doc/source.rst
index ec9994b..2b16198 100644
--- a/doc/source.rst
+++ b/doc/source.rst
@@ -30,7 +30,10 @@ the ``[run] source`` configuration value. The value is a list of directories
or package names. If specified, only source inside these directories or
packages will be measured. Specifying the source option also enables
coverage.py to report on unexecuted files, since it can search the source tree
-for files that haven't been measured at all.
+for files that haven't been measured at all. Only importable files (ones at
+the root of the tree, or in directories with a ``__init__.py`` file) will be
+considered, and files with unusual punctuation in their names will be skipped
+(they are assumed to be scratch files written by text editors).
You can further fine-tune coverage.py's attention with the ``--include`` and
``--omit`` switches (or ``[run] include`` and ``[run] omit`` configuration