CruiseControl.NET在Nant构建文件执行NUnit时查看NUnit xml测试结果
我有一个 Nant 构建文件,它在编译 dll 后执行 NUnit。 我正在使用 CruiseControl 中的任务执行 NAnt 构建文件。 所以 NAnt 正在运行测试,而不是 CruiseControl。
如何配置它以便 CruiseControl Web 仪表板可用于查看 NUnit 输出?
这修复了它:
<publishers>
<merge>
<files>
<file>build\*.test-result.xml</file>
</files>
</merge>
<xmllogger />
</publishers>
I have a Nant build file which executes NUnit after compiling the dll's. I am executing the NAnt build file with a task in CruiseControl. So NAnt is running the tests not CruiseControl.
How do I configure it so that the CruiseControl web dashboard can be used to view the NUnit output ?
This fixed it:
<publishers>
<merge>
<files>
<file>build\*.test-result.xml</file>
</files>
</merge>
<xmllogger />
</publishers>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您想要使用 CruiseControl 的合并功能来获取 NUnit XML 输出。 这就是我公司目前的情况,而且看起来运作得还不错。 这是一个配置片段(位于 CCNet.config 中的元素中):
希望这对您有用。
You want to use the merge capabilities of CruiseControl to grab your NUnit XML output. This is the situation my company has going, and it seems to work fairly well. Here is a config snippet (This goes in the <publishers> element in CCNet.config):
Hope this works for you.
FWIW 我遇到了同样的问题(CC.Net 触发了 Nant,它负责编译和 NUnit 工作),并且我的 NUnit 输出也没有出现在 CC.Net 上。 我的
任务中已经有
任务(在
任务之前),但仍然没有任何内容。我没有的一件事是我的
中的
。 当我添加后,我的 NUnit 输出立即出现。 无论出于何种原因,似乎都存在依赖性。 希望这对你们中的一些人有所帮助。
节点,因为我没有明确需要它。FWIW I had the same problem (CC.Net fires off Nant which does the compile and NUnit work) and my NUnit output was not appearing on CC.Net either. I already had the
<merge>
task inside my<publisher>
task (and before the<xmllogger>
task) and still nothing.The one thing that I did not have, b/c I didn't explicitly need it, was a
<workingDirectory>
node in my<project>
. As soon as I added that my NUnit output appeared immediately. Looks as if there's a dependency there for whatever reason. Hope this helps some of you.确保在dashboard.config文件中我们使用ncover运行nunit并使用此xsl\NCoverExplorer.xsl部分中有一个有效的xsl文件
我认为我们从 ncover 中获取的 xsl 文件安装在某处。
还要确保这一行是正确的:
然后确保在 ccnet.config 文件的 部分下有列出的 nunit 测试的 xml 输出。
另请确保将 xsl 文件放入 webdashboard 下的 xsl 文件夹中。
Make sure that in the the dashboard.config file you have a valid xsl file in the section we run nunit with ncover and use this xsl\NCoverExplorer.xsl
I think that the xsl file we took from the ncover install somewhere.
also make sure that this line is correct:
Then make sure in the ccnet.config file that under the section you have the xml output from the nunit test listed.
Also make sure you put the xsl file in the xsl folder under webdashboard.