1
考慮以下XML results of a JUnit test:Junit的HTML報表生成器
<?xml version="1.0" ?>
<testsuite errors="0" failures="1" name="TheTest-20130618162859"
tests="3" time="0.000">
<testcase classname="TheTest" name="testOne" time="0.000"/>
<testcase classname="TheTest" name="testTwo" time="0.000"/>
<testcase classname="TheTest" name="testThree" time="0.000">
<failure message="3 != 4" type="AssertionError">
<![CDATA[Traceback (most recent call last):
File "blah.py", line 11, in testThree
self.assertEquals(3, 4)
AssertionError: 3 != 4
]]> </failure>
</testcase>
<system-out>
<![CDATA[]]> </system-out>
<system-err>
<![CDATA[]]> </system-err>
</testsuite>
如何創建從這些結果的HTML報告?
附錄: 測試套件的每次執行創建一個新的文件:
TEST-TheTest-20130618162859.xml
TEST-TheTest-20130618163459.xml
TEST-TheTest-20130618163600.xml
我寧願一個報告生成器,可以查看每個測試的歷史記錄。