Unit test discovery with XML Runner?

2012-08-24 Thread lucretiel
results, though. Googling pointed me to xmlrunner, which seems perfect, but requires me to add the if name=='__main__ line to all my tests, which isn't run my test discovery. Is there a way to use xml runner with test discovery, or another way to solve the problem? -Lucretiel -- http

Publish unittest results from test discovery

2012-08-24 Thread Lucretiel
So I've started using unittest, and I love it. I use testdiscovery (python -m unittest discover) so that I can distribute my tests and don't have to manage them all manually. I wanted to start publishing my test results to xml, though. I found xmlrunner by googling around, but it requires me to