accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r1495439 - /accumulo/branches/1.4/test/system/auto/run.py
Date Fri, 21 Jun 2013 13:45:38 GMT
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)



Mime
View raw message