問題描述
對于可以從 NUnit 的 XML 輸出生成 HTML 報告的好工具、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 在我們的代碼庫上運行大量測試.開發團隊很高興看到 GUI 和控制臺運行程序中的輸出以及我們的 Hudson 服務器上顯示的報告.
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 生成的報告需要用戶單擊鏈接以深入了解某些詳細信息.我想制作一份適合向管理層和/或客戶展示的單一文檔報告.
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.
到目前為止,我發現的唯一工具是 http://nunit2report.sourceforge.net/自 2003 年以來尚未更新,基于舊版本的 NUnit(我認為報告格式可能發生了重大變化?)并且是一個 nant 任務(我們不使用 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).
在我花太長時間嘗試修改 nunit2reports xslt 以適應最近的 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?
非常感謝.
推薦答案
對于任何有興趣的人,我發現了另外兩個工具.
For anyone interested, I found two other tools.
- nunit-summary
- nunit-results
兩者都可以在 Lauchpad 上找到,從上面鏈接的非常基本的產品頁面鏈接到.
Both are available on Lauchpad, linked to from the very basic product pages linked above.
不幸的是,這些工具都沒有為我們的安裝提供所需的詳細程度 - 所以我最終修改了 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.
這篇關于如何將 NUnit 輸出轉換為 HTML 報告的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!