diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2010-07-25 19:28:51 -0400 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2010-07-25 19:28:51 -0400 |
| commit | 5d1fb03bf3c3eb4f511289e0728f37a183296d4a (patch) | |
| tree | 9ed44e010aab9eb94d5180f3e76c821ce0367ee2 /doc/subprocess.rst | |
| parent | a50136c79ca31513098c3d81ef89d6071fe01ae7 (diff) | |
| download | python-coveragepy-git-5d1fb03bf3c3eb4f511289e0728f37a183296d4a.tar.gz | |
Lots of doc updates, more to come.
Diffstat (limited to 'doc/subprocess.rst')
| -rw-r--r-- | doc/subprocess.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/subprocess.rst b/doc/subprocess.rst index d976f692..81756810 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. |
