Question

I'm running python unit tests using nosetests, and generating an xml report for use by something (Jenkins in this case).

Nosetests didn't appear to be publishing XML results, but after some investigating I realized it was just putting the file in the wrong directory.

Running

nosetests --with-xunit --where foo/bar

With nosetests 1.1.2, this produces the file nosetests.xml in the current directory. However when using nosetests 1.3.0, the file ends up in foo/bar/nosetests.xml.

Was it helpful?

Solution

For some reason removing the --where did the trick for me:

nosetests --with-xunit foo/bar

This generates nosetests.xml in the expected (current) directory.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top