summaryrefslogtreecommitdiff
path: root/doc/cmd.rst
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2018-09-21 17:52:33 -0400
committerNed Batchelder <ned@nedbatchelder.com>2018-09-21 17:56:49 -0400
commitb0f5ac245fbd8afc6b9d2ac84f732c419a712f0a (patch)
tree6d4e7e03f5b7d8b3ba98dd914c9adc09d3144802 /doc/cmd.rst
parent2ae3ff2f6d4845c5baa6af244d96e397c235ee01 (diff)
downloadpython-coveragepy-git-b0f5ac245fbd8afc6b9d2ac84f732c419a712f0a.tar.gz
Documentation for static contexts
Diffstat (limited to 'doc/cmd.rst')
-rw-r--r--doc/cmd.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/cmd.rst b/doc/cmd.rst
index 908b2ee9..0d1a05b5 100644
--- a/doc/cmd.rst
+++ b/doc/cmd.rst
@@ -69,7 +69,7 @@ control, and can provide options that other invocation techniques (like test
runner plugins) may not offer. See :ref:`config` for more details.
-.. _cmd_execution:
+.. _cmd_run:
Execution
---------
@@ -118,6 +118,10 @@ configuration file for all options.
.. _gevent: http://www.gevent.org/
.. _eventlet: http://eventlet.net/
+You can specify a :ref:`static context <contexts>` for a coverage run with
+``--context``. This can be any label you want, and will be recorded with the
+data. See :ref:`contexts` for more information.
+
By default, coverage.py does not measure code installed with the Python
interpreter, for example, the standard library. If you want to measure that
code as well as your own, add the ``-L`` (or ``--pylib``) flag.