0

How do I save nosetests results to a custom xml file located in a specific folder?

My directory structure is:

    /MyApp
      /TestSuites
      /Logs

My test cases are in a file called tests.py located inside /TestSuites

When I try to run:

    nosetests tests.py --xunit-file=../Logs/testlog.xml

No xml file is generated.

areyoufried
  • 51
  • 1
  • 6

2 Answers2

0

I figured it out, all I had to do was execute it like this:

    nosetests tests.py --with-xunit --xunit-file=../Logs/testlog.xml
areyoufried
  • 51
  • 1
  • 6
0

For future reference, if you enter the following at the command line:

$ nosetests --help

This give a range of options for nosetests, including the required parameter, i.e:

--with-xunit
mickm
  • 281
  • 2
  • 6
  • 20