問(wèn)題描述
對(duì)于可以從 NUnit 的 XML 輸出生成 HTML 報(bào)告的好工具、xslt 或其他工具,是否有人有任何建議?
Does anyone have any suggestions for a good tool, xslt or other that can produce an HTML report from the XML output of NUnit?
我們目前正在使用 NUnit 2.5.5 在我們的代碼庫(kù)上運(yùn)行大量測(cè)試.開發(fā)團(tuán)隊(duì)很高興看到 GUI 和控制臺(tái)運(yùn)行程序中的輸出以及我們的 Hudson 服務(wù)器上顯示的報(bào)告.
We're currently using NUnit 2.5.5 to run a number of tests on our code base. The dev team are happy seeing the output in the GUI and console runners and the report shown on our Hudson server.
Hudson 生成的報(bào)告需要用戶單擊鏈接以深入了解某些詳細(xì)信息.我想制作一份適合向管理層和/或客戶展示的單一文檔報(bào)告.
The Hudson generated report needs a user to click links to drill down to some of the details. I would like to produce a single document report suitable for showing to management and/or the client.
到目前為止,我發(fā)現(xiàn)的唯一工具是 http://nunit2report.sourceforge.net/自 2003 年以來(lái)尚未更新,基于舊版本的 NUnit(我認(rèn)為報(bào)告格式可能發(fā)生了重大變化?)并且是一個(gè) nant 任務(wù)(我們不使用 nant).
Thus far, the only tool I've found is http://nunit2report.sourceforge.net/ which hasn't been updated sine 2003, is based on an old version of NUnit (I think the report format might have changed significantly?) and is a nant task (we don't use nant).
在我花太長(zhǎng)時(shí)間嘗試修改 nunit2reports xslt 以適應(yīng)最近的 NUnit 輸出之前,有人能指出更合適的工具嗎?
Before I spend too long trying to doctor nunit2reports xslt's to suit the recent NUnit's output, can anyone point be to a more suitable tool?
非常感謝.
推薦答案
對(duì)于任何有興趣的人,我發(fā)現(xiàn)了另外兩個(gè)工具.
For anyone interested, I found two other tools.
- nunit-summary
- nunit-results
兩者都可以在 Lauchpad 上找到,從上面鏈接的非常基本的產(chǎn)品頁(yè)面鏈接到.
Both are available on Lauchpad, linked to from the very basic product pages linked above.
不幸的是,這些工具都沒(méi)有為我們的安裝提供所需的詳細(xì)程度 - 所以我最終修改了 nunit2report 以滿足需求.
Unfortunately, neither of these tools provided the required level of detail for our installation - so I ended up doctoring the xslt's that came with nunit2report to suit out needs.
這篇關(guān)于如何將 NUnit 輸出轉(zhuǎn)換為 HTML 報(bào)告的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!