summaryrefslogtreecommitdiff
path: root/doc/cmd.rst
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2014-09-25 07:18:40 -0400
committerNed Batchelder <ned@nedbatchelder.com>2014-09-25 07:18:40 -0400
commitdb32bc9ab87fccf85515f87d3714de12ccabc585 (patch)
tree5451cfbf0af0e28826473df426d6525710d2545e /doc/cmd.rst
parentfe9ea16b667d2a89d94f09b52c58b54e209874c2 (diff)
downloadpython-coveragepy-db32bc9ab87fccf85515f87d3714de12ccabc585.tar.gz
Add docs for --concurrency
Diffstat (limited to 'doc/cmd.rst')
-rw-r--r--doc/cmd.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/cmd.rst b/doc/cmd.rst
index 49062b3..cb40159 100644
--- a/doc/cmd.rst
+++ b/doc/cmd.rst
@@ -17,6 +17,7 @@ Coverage command line usage
:history: 20120807T211600, Clarified the combine rules.
:history: 20121003T074600, Fixed an option reference, https://bitbucket.org/ned/coveragepy/issue/200/documentation-mentions-output-xml-instead
:history: 20121117T091000, Added command aliases.
+:history: 20140924T193000, Added --concurrency
.. highlight:: console
@@ -95,6 +96,16 @@ but before the program invocation::
$ coverage run --source=dir1,dir2 my_program.py arg1 arg2
$ coverage run --source=dir1,dir2 -m packagename.modulename arg1 arg2
+Coverage can measure multi-threaded programs by default. If you are using
+more exotic concurrency, with the `greenlet`_, `eventlet`_, or `gevent`_
+libraries, then coverage will get very confused. Use the ``--concurrency``
+switch to properly measure programs using these libraries. Give it a value of
+``greenlet``, ``eventlet``, or ``gevent``.
+
+.. _greenlet: http://greenlet.readthedocs.org/en/latest/
+.. _gevent: http://www.gevent.org/
+.. _eventlet: http://eventlet.net/
+
By default, coverage 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`` flag.