hRobert12 / python-nose

Automatically exported from code.google.com/p/python-nose
0 stars 0 forks source link

Support coverage's parallel mode #352

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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.<suffix>). 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.

Original issue reported on code.google.com by arve.knu...@gmail.com on 20 Jul 2010 at 5:00

GoogleCodeExporter commented 8 years ago

Original comment by jpelle...@gmail.com on 20 Jul 2010 at 6:04

GoogleCodeExporter commented 8 years ago
I have added a named branch in this repository, "multiprocess-coverage", which 
makes coverage analysis work also when the multiprocess plugin is enabled.

Original comment by arve.knu...@gmail.com on 7 Aug 2010 at 3:09

GoogleCodeExporter commented 8 years ago
What is the status on this?

Original comment by niklas.h...@gmail.com on 6 Oct 2012 at 11:58

GoogleCodeExporter commented 8 years ago
Hi Niklas. I haven't worked on this issue for some time, as I've mainly been 
working on  .NET projects. I'll see if I can find the time to evaluate my 
branch wrt. the current version of Nose.

Original comment by arve.knu...@gmail.com on 7 Oct 2012 at 8:59