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.

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top