diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2018-09-21 17:52:33 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2018-09-21 17:56:49 -0400 |
commit | b0f5ac245fbd8afc6b9d2ac84f732c419a712f0a (patch) | |
tree | 6d4e7e03f5b7d8b3ba98dd914c9adc09d3144802 /doc/cmd.rst | |
parent | 2ae3ff2f6d4845c5baa6af244d96e397c235ee01 (diff) | |
download | python-coveragepy-git-b0f5ac245fbd8afc6b9d2ac84f732c419a712f0a.tar.gz |
Documentation for static contexts
Diffstat (limited to 'doc/cmd.rst')
-rw-r--r-- | doc/cmd.rst | 6 |
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. |