【发布时间】:2019-10-04 02:15:01
【问题描述】:
我正在尝试使用 Jenkins 集成使用 specflow 和 NUnit2.64 的甜甜圈类型报告(我也尝试过使用 Nunit3)。有没有人试过我用谷歌搜索但找不到太多细节?
我在我的 Jenkins 中做了以下配置。
MSBuild Version : MSBuild
MSBuild Build File: Myproject.sln
执行 Windows 批处理命令
Command: D:\myprojectPath\bin\nunit3-console D:\projectPath\bin\Debug\RESTAPITest.dll --result=TestResult.xml
D:\Reports\specflow.exe nunitexecution report D:\myProjectPath\projName.csproj /out:MyTestResults.html
发布 Nunit 测试结果报告
Test report XMLs: TestResult.xml
我得到的报告是这样的。但是我的 TestResult.xml 显示了场景的所有步骤。不知道我错过了什么,我想以甜甜圈的形式显示报告。
【问题讨论】:
-
您使用的是哪个 SpecFlow 版本?请注意,SpecFlow 尚未完全支持 NUnit3 测试结果输出。
标签: jenkins specflow nunit-3.0 nunit-2.6