summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-02-28 17:07:22 -0500
committerNed Batchelder <ned@nedbatchelder.com>2016-02-28 17:07:22 -0500
commitef8c14759ac9aa5aa0c9e42d32f755f203b36f88 (patch)
tree849d3b555544c35b3bff1d977fb6239d340bcd55 /doc
parent56956fcba2df92bd65660f42169859f8ca6587aa (diff)
downloadpython-coveragepy-ef8c14759ac9aa5aa0c9e42d32f755f203b36f88.tar.gz
Even more precise
Diffstat (limited to 'doc')
-rw-r--r--doc/source.rst17
1 files changed, 9 insertions, 8 deletions
diff --git a/doc/source.rst b/doc/source.rst
index 95481c6..fd8370e 100644
--- a/doc/source.rst
+++ b/doc/source.rst
@@ -29,14 +29,15 @@ When running your code, the ``coverage run`` command will by default measure
all code, unless it is part of the Python standard library.
You can specify source to measure with the ``--source`` command-line switch, or
-the ``[run] source`` configuration value. The value is a comma-separated 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. 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).
+the ``[run] source`` configuration value. The value is a comma- or
+newline-separated 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. 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