From b0f5ac245fbd8afc6b9d2ac84f732c419a712f0a Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Fri, 21 Sep 2018 17:52:33 -0400 Subject: Documentation for static contexts --- doc/cmd.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'doc/cmd.rst') 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 ` 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. -- cgit v1.2.1