nose-devs/nose — Issue #56: Support coverage's parallel mode
Author: jpellerin
Created: 2011-12-14 15:57:17+00:00
State: open

Please integrate my branch at http://code.google.com/r/arveknudsen-cover-parallel. The goal of this branch is to make the coverage plugin able to support coverage's parallel mode.

The motivating scenario was that my tests executed the AUT in subprocesses, so that coverage analysis of the AUT had to happen in parallel mode. In this case, coverage creates one data file per process (.coverage.). I enabled coverage parallel mode in a coverage configuration file.

In order to make this work with nose, I first added an option "--cover-rcfile" to the coverage plugin, so it could be informed of coverage's mode. If coverage is in parallel mode, the plugin combines all the data files before erasing them (if --cover-erase is specified) and before the coverage data is saved. Thanks to this scheme, coverage data from all my AUT subprocesses get included in the nose coverage report.

I have also written a functional test for the coverage plugin.

Google Code Info:
Issue #: 352
Author: arve.knu...@gmail.com
Created On: 2010-07-20T17:00:32.000Z
Closed On: