Commits

Anonymous committed dd10a52 Draft

Describe workaround to use nose cov and multiprocessing plugins together.

  • Participants
  • Parent commits 62caa0f

Comments (0)

Files changed (1)

 started.
 
 
+Nose Multiprocess Plugin
+------------------------
+
+The nose cov plugin partially works with the nose multiprocess plugin.
+
+The nose multiprocess plugin does not join with its child processes so nose cov plugin has coverage
+measured but can't merge coverage results and report them.
+
+Work around by using cov plugin and multiprocess plugin together to run tests, note coverage report
+from this command will be incorrect::
+
+    nosetests --with-cov --processes=4 tests/
+
+After there will be coverage data files for the main nose process and each subprocess::
+
+    .coverage
+    .coverage.hostname.7323.198266
+    .coverage.hostname.7339.177156
+    .coverage.hostname.7358.543616
+    .coverage.hostname.7393.997428
+
+Tell coverage to merge coverage results into one coverage data file::
+
+    coverage combine
+
+
+Tell coverage to report::
+
+    coverage report
+
+
 Acknowledgements
 ----------------