Jenkins/Hudson 和 Gallio 单元测试集成
我正在努力让它运行我的测试。在 Jenkins 上的执行 Windows 批处理命令中,我输入了以下命令:
C:\Program Files (x86)\Gallio\bin\Gallio.Echo.exe" /report-type:Html /verbosity:quiet “Project.Tests\bin\Release\*.Tests.dll
它不喜欢 *.Tests.dll
位,因为它说:
找不到包含文件模式 的目录Project.Tests\bin\Release\*.Tests.dll
。
我的下一个问题是,如果我将报告类型更改为 xml,是否可以直接在 hudson 中发布我的单元测试报告?
非常感谢。
I am struggling to get it to run my tests. In the Execute Windows batch command on Jenkins, I have put the following command:
C:\Program Files (x86)\Gallio\bin\Gallio.Echo.exe" /report-type:Html /verbosity:quiet “Project.Tests\bin\Release\*.Tests.dll
It doesn't like the *.Tests.dll
bit, in that it says:
Cannot find directory containing file pattern Project.Tests\bin\Release\*.Tests.dll
.
My next question would be if I change the report-type to xml, is it straight forward to get my unit test reports published in hudson?
many thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
以下摘录在 Windows Batch 命令构建步骤中运行 Gallio 测试 (从以下位置下载 Gallio)
设置 Jenkins报告生成
The following extract runs Gallio tests in a Windows Batch command build step (Download Gallio from)
To setup Jenkins report generation
您可以使用 .Net 的 Maven 插件: http://docs.codehaus.org/display /SONAR/.Net+插件
它负责 Gallio 命令行生成:您可以提供一个过滤器:
然后,Maven 插件生成命令行。
使用 Maven 还具有很多优势:与 Partcover/NCover、stylecop/fxcop/gendarme 等集成。
或者您可以为此制作一个 MSBuild 脚本:
You can use Maven plugin for .Net: http://docs.codehaus.org/display/SONAR/.Net+plugin
It takes care of Gallio command line generation: you can provide a filter :
Then, the Maven plugin generates the command line.
You also have a lot of advantages using maven: integration with Partcover/NCover, stylecop/fxcop/gendarme, etc.
OR you can make a MSBuild script for that:
我很确定您想研究使用 Gallio 插件 而不是使用执行 Windows 批处理命令。
I am pretty sure you want to look into using the Gallio Plugin instead of using the execute windows batch command.