我发现一个python模块https://bitbucket.org/db_atlass/python-junit-xml-output-
module/,看起来很适合我的需求。大卫·布莱克
# pre snippet for the usage""" a short example of how to use this module """test_cases = []for i in range(0, 5): type_c = "" if i % 2 == 0: type_c = "failure" test_cases.append(TestCase(i, str(i) + "contents", type_c) )junit_xml = JunitXml("demo test example", test_cases)


