summaryrefslogtreecommitdiff
path: root/doc/subprocess.rst
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2010-07-25 19:28:51 -0400
committerNed Batchelder <ned@nedbatchelder.com>2010-07-25 19:28:51 -0400
commit169656a3b2b8f4b74c5f45a02c487922c6f321be (patch)
treea982b4c06f90cba644a1c1a32733bf01bbce7d25 /doc/subprocess.rst
parent5612dabf04499110288df3f589b7b5d6449f489a (diff)
downloadpython-coveragepy-169656a3b2b8f4b74c5f45a02c487922c6f321be.tar.gz
Lots of doc updates, more to come.
Diffstat (limited to 'doc/subprocess.rst')
-rw-r--r--doc/subprocess.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/subprocess.rst b/doc/subprocess.rst
index d976f69..8175681 100644
--- a/doc/subprocess.rst
+++ b/doc/subprocess.rst
@@ -8,15 +8,15 @@ Measuring subprocesses
Complex test suites may spawn subprocesses to run tests, either to run them in
-parallel, or because subprocess behavior is an important part of the code under
-test. Measuring coverage in those subprocesses can be tricky because you have
-to modify the code spawning the process to invoke coverage.py.
+parallel, or because subprocess behavior is an important part of the system
+under test. Measuring coverage in those subprocesses can be tricky because you
+have to modify the code spawning the process to invoke coverage.py.
There's an easier way to do it: coverage.py includes a function,
:func:`coverage.process_startup` designed to be invoked when Python starts. It
examines the ``COVERAGE_PROCESS_START`` environment variable, and if it is set,
-begins coverage measurement. Its value will be used as the name of the
-:ref:`configuration file <config>` to use.
+begins coverage measurement. The environment variable's value will be used as
+the name of the :ref:`configuration file <config>` to use.
When using this technique, be sure to set the parallel option to true so that
multiple coverage.py runs will each write their data to a distinct file.