2

I am struggling to get nosetests to output xml.

I have installed nosexml, then in by PYTHONPATH typed ln -s /usr/lib/python2.7/xml/etree/ elementtree.

Now I can type nosetests -plugins and get a list of plugins including xunit.

If I run

nosetests  --with-xunit test.py

then I get a file 'nosetests.xml' with test results. So I try to run nose as follows,

nosetests  --with-xunit --processes=1 --process-timeout=8000 test.py

and get a file 'nosetests.xml' that says no tests run.

<?xml version="1.0" encoding="UTF-8"?><testsuite name="nosetests" tests="0" errors="0" failures="0" skip="0"></testsuite>

Can I use --with-xunit with other options?

2 Answers 2

2

Recently solution appeared - xunitmp. Checked - works for me.

Sign up to request clarification or add additional context in comments.

Comments

1

It is a bug in the xunit plug-in. By what I see it was not fixed, so at the moment there is no way to use --processes and --with-xunit options together.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.