NoseXUnit: JUnit like XML reporting for PyUnit
NoseXUnit 提供一种方便的方式用来产生类似JUnit的使用PyUnit的XML报告。它还提供了优美的报告生成代码覆盖率和审计功能。
# -*- coding:gbk -*- from xml.etree import ElementTree import datetime def gettestresult(): filename='C:/Users/Pan/Desktop/test/test.xml' etree = ElementTree.parse(filename) root = etree.g