Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #27844
| From | Lucretiel <lucretiel@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Publish unittest results from test discovery |
| Date | 2012-08-24 17:25 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <afce5fc2-854e-4c69-95ba-248bc5a34fd8@googlegroups.com> (permalink) |
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 add an if __name__ == '__main__' block to my code, which isn't executed by unittest discover. Is there a way to get unittest disover to work with xmlrunner, or to some other way to solve this without restructuring all my test code?
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Publish unittest results from test discovery Lucretiel <lucretiel@gmail.com> - 2012-08-24 17:25 -0700
Re: Publish unittest results from test discovery Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-08-25 01:03 +0000
Re: Publish unittest results from test discovery Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-08-25 08:57 +0100
Re: Publish unittest results from test discovery Peter Otten <__peter__@web.de> - 2012-08-25 17:55 +0200
csiph-web