Update combine_results.py to be more verbose
And fix a couple whitespace issues.
@@ -69,18 +69,19 @@ def main():
if args.debug : ET.dump(result)
- for testsuite in result.iter('testsuite'):
- for testcase in testsuite.iter('testcase'):
+ for testsuite_count, testsuite in enumerate(result.iter('testsuite'),1):
+ for testcase_count, testcase in enumerate(testsuite.iter('testcase'),1):
for failure in testcase.iter('failure'):
if args.set_rc: rc=1
- print("Failure in testsuite: '%s' testcase: '%s' with parameters '%s'" % (testsuite.get('name'), testcase.get('name'), testsuite.get('package')))
+ print("Failure in testsuite: '%s' classname: '%s' testcase: '%s' with parameters '%s'" % (testsuite.get('name'), testcase.get('classname'), testcase.get('name'), testsuite.get('package')))
+
+ print("Ran a total of %d TestSuites and %d TestCases" % (testsuite_count, testcase_count))
ET.ElementTree(result).write(args.output_file, encoding="UTF-8")
return rc
-
if __name__ == "__main__":
rc = main()
sys.exit(rc)
