Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Closed
jpellerin opened this issue Dec 14, 2011 · 1 comment · Fixed by #968
Closed

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

jpellerin opened this issue Dec 14, 2011 · 1 comment · Fixed by #968
Assignees

Comments

@jpellerin
Copy link
Member

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=9c9026ef31cf7247391fff1650770cb93209a53f

Google Code Info:
Issue #: 390
Author: jsiir...@gmail.com
Created On: 2011-01-07T21:57:22.000Z
Closed On:

@jpellerin
Copy link
Member Author

Google Code Info:
Author: jpelle...@gmail.com
Created On: 2011-02-08T14:39:27.000Z

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant