You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by ec...@apache.org on 2013/06/21 15:45:38 UTC
svn commit: r1495439 - /accumulo/branches/1.4/test/system/auto/run.py
Author: ecn
Date: Fri Jun 21 13:45:37 2013
New Revision: 1495439
URL: http://svn.apache.org/r1495439
Log:
ACCUMULO-1526 provide an xml report format
Modified:
accumulo/branches/1.4/test/system/auto/run.py
Modified: accumulo/branches/1.4/test/system/auto/run.py
URL: http://svn.apache.org/viewvc/accumulo/branches/1.4/test/system/auto/run.py?rev=1495439&r1=1495438&r2=1495439&view=diff
==============================================================================
--- accumulo/branches/1.4/test/system/auto/run.py (original)
+++ accumulo/branches/1.4/test/system/auto/run.py Fri Jun 21 13:45:37 2013
@@ -241,6 +241,8 @@ def main():
help='Do not clean up at the end of the test.')
parser.add_option('-s', '--start', dest='start', default=None,
help='Start the test list at the given test name')
+ parser.add_option('-x', '--xml', dest='xmlreport', default=False, action='store_true',
+ help='Output tests results to xml (jenkins conpatible)')
allTests = getTests()
options = parseArguments(parser, allTests)
@@ -268,7 +270,12 @@ def main():
print "ZOOKEEPER_HOME needs to be set"
sys.exit(1)
- runner = TestRunner()
+ if options.xmlreport:
+ import xmlrunner
+ runner = xmlrunner.XMLTestRunner(output='test-reports')
+ else:
+ runner = TestRunner()
+
suite = unittest.TestSuite()
map(suite.addTest, filtered)