summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <nedbat@gmail.com>2016-12-24 17:45:25 -0500
committerNed Batchelder <nedbat@gmail.com>2016-12-24 17:45:25 -0500
commitce764c1f6cc86777687e28f4b5b66964db3036a5 (patch)
treefeb8b270a2e0d61d2fc2e397dbf4324d59a5befd
parentf9a0784c8b62833ef53a2337489cb4ebdb0ee18d (diff)
parentc74976d38cff16af104c9dcb3b1826542ea32f99 (diff)
downloadpython-coveragepy-ce764c1f6cc86777687e28f4b5b66964db3036a5.tar.gz
Merged in dachary/coverage.py/issue-425 (pull request #113)
sources that do not end with .py\w? are ignored #425
-rw-r--r--doc/cmd.rst2
-rw-r--r--doc/source.rst5
2 files changed, 4 insertions, 3 deletions
diff --git a/doc/cmd.rst b/doc/cmd.rst
index 8b97ce3..9dfa121 100644
--- a/doc/cmd.rst
+++ b/doc/cmd.rst
@@ -93,7 +93,7 @@ If you want :ref:`branch coverage <branch>` measurement, use the ``--branch``
flag. Otherwise only statement coverage is measured.
You can specify the code to measure with the ``--source``, ``--include``, and
-``--omit`` switches. See :ref:`Specifying source files <source_execution>` for
+``--omit`` switches. See :ref:`Specifying source directories <source_execution>` for
details of their interpretation. Remember to put options for run after "run",
but before the program invocation::
diff --git a/doc/source.rst b/doc/source.rst
index 8f5b31b..8d831c4 100644
--- a/doc/source.rst
+++ b/doc/source.rst
@@ -35,9 +35,10 @@ 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
+``__init__.py`` file) will be considered. Files with unusual punctuation in
their names will be skipped (they are assumed to be scratch files written by
-text editors).
+text editors). Files that do not end with ``.py`` or ``.pyo`` or ``.pyc``
+will also be skipped.
You can further fine-tune coverage.py's attention with the ``--include`` and
``--omit`` switches (or ``[run] include`` and ``[run] omit`` configuration