我已經運行junit並顯示Junit控制檯中的結果,然後我執行導出的結果,它被保存爲一些test.xml。現在我想生成一個HTML報告,我該如何做?我的項目是複雜的,我不能做一個正常的如何手動創建junit xml報告的html報告?
<target name ="test" depends="run-tests">
<junitreport todir="${reports}">
<fileset dir="${reports}/raw/">
<include name="TEST-*.xml"/>
</fileset>
<report format="frames" todir="${reports}\html\"/>
</junitreport>
</target>
任何人都可以使用的結果轉換成XML爲html格式的任何工具。
你可以更具體一些,爲什麼它不像普通的ant junit任務一樣工作? – 2011-12-21 12:49:53
當然,你可以調用Ant任務的所有相同的東西,或者編寫自己的變換。但是,我無法想象爲什麼這是必要的。 – 2011-12-21 12:52:13