pombreda / python-nose

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

Allow user-specified prefix for all test names in XML report #390

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I have a situation where a project contains several independent sub-packages, 
each with their own test suites.  To test the entire project, we run nosetests 
on each package separately from the package's top directory.  The resulting 
Xunit xml files are merged together and displayed within Hudson.

Unfortunately, since this is being done within each project's directory, the 
individual test class names don't include the package name, so the results get 
mangled and merged within Hudson.  A simple solution is to have the Xunit 
plugin support a "--xunit-prefix" option that gets prepended to the classname 
in the XML report.

The following changeset implements this option (and the unit tests for it):

https://code.google.com/r/jsiirola-python-nose-clone/source/detail?r=9c9026ef31c
f7247391fff1650770cb93209a53f

Original issue reported on code.google.com by jsiir...@gmail.com on 7 Jan 2011 at 9:57

GoogleCodeExporter commented 9 years ago

Original comment by jpelle...@gmail.com on 8 Feb 2011 at 2:39