2017-05-17 103 views
0

我正在尝试使用specflow和NUnit2.64(我尝试使用Nunit3以及)使用Jenkins来集成甜甜圈类型报告。有没有人试过,我谷歌,但无法找到很多细节?Jenkins的BDD specflow测试报告

我在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显示了场景的所有步骤。不知道我错过了什么,我想用甜甜圈形式展示报道。

enter image description here

+0

您使用哪种SpecFlow版本? 请注意,SpecFlow尚未完全支持NUnit3测试结果输出。 –

回答

0

您使用NUnit3时(见Specflow documentation)作为Specflow不会在此刻完全支持NUnit3需要输出正确的格式的报告。