Patches item #1522704, was opened at 2006-07-14 14:02 Message generated for change (Comment added) made by collinwinter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1522704&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Library (Lib) Group: Python 2.4 >Status: Closed >Resolution: Rejected Priority: 5 Private: No Submitted By: Sebastian Rittau (srittau) Assigned to: Nobody/Anonymous (nobody) Summary: XML Test Runner for unittest module Initial Comment: JUnit features an XML Test Runner that enables test output in XML format. This is very useful for buildbots and similar automated setups. PyUnit (the unittest module) lacks this capability. The attached file implements such an XML Test Runner and the matching unit tests. I did not try to generate a patch to the current SVN version and leave that to more capable hand. I think the current unittest module should probably changed into a unittest package like this: unittest/__init__.py - the current unittest.py file unittest/xmlrunner.py - the new XML runner Later __init__.py could be split into even more files like textrunner.py etc. I would like to hear about any improvements that the patch needs (even minor ones). ---------------------------------------------------------------------- >Comment By: Collin Winter (collinwinter) Date: 2007-03-07 19:45 Message: Logged In: YES user_id=1344176 Originator: NO As noted in an earlier comment, this needs to spend some time out in the Cheeseshop and build up a following before being included in the stdlib; closing. ---------------------------------------------------------------------- Comment By: Sebastian Rittau (srittau) Date: 2006-07-27 05:22 Message: Logged In: YES user_id=47380 I attached an updated patch. It includes feedback by Mirko Friedenhagen: XmlTestRunner.run now returns the TestResult instead of a boolean, it is now possible to stream multiple test results into a single XML stream, since the XML declaration is left out, if no new file is created, and XmlTestRunner now gracefully recovers from tests overriding sys.stdout and sys.stderr. ---------------------------------------------------------------------- Comment By: Collin Winter (collinwinter) Date: 2006-07-17 14:02 Message: Logged In: YES user_id=1344176 I'd recommend that you release this somewhere like PyPI (http://cheeseshop.python.org/pypi) and see how well it does. If it flies off the shelf, then it could be considered for inclusion in the stdlib. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1522704&group_id=5470 _______________________________________________ Patches mailing list [email protected] http://mail.python.org/mailman/listinfo/patches
