문제

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