带有 SpecFlow 的 NUnit3 在 VS 中作为批处理命令运行,但不在 Jenkins 中运行
NUnit3 with SpecFlow runs in VS and as batch command but not in Jenkins
我使用 SpecFlow(+SpecRun) 和 NUnit 框架 (v.3.8.1.0) 编写了 selenium 测试。我已将 Jenkins 配置为 运行 这些测试。我的Jenkins Windows批处理命令如下:
"C:\Program Files (x86)\NUnit.ConsoleRunner.7.0\tools\nunit3-console.exe"
C:\Projects\Selenium\ClassLibrary1\PortalTests\bin\Debug\PortalTests.dll
--test=TransactionTabTest;result="%WORKSPACE%\TestResults\TestR.xml";format=nunit3
当我触发构建测试似乎开始 运行ning 时,我已经到达 NUNIT3-CONSOLE [inputfiles] [options] 的末尾,微调器指示测试正在 运行ning但它实际上永远不会结束,估计剩余时间是:N/A.
现在,当我 运行 这个脚本 windows cmd.exe:
"[PATH to Console.exe]\nunit3-console.exe" PortalTests.dll -- test=TransactionTabTest
此测试成功通过,在 VS 中也是如此。
现在,我知道这是一个非常笼统的问题,但任何线索都将不胜感激。
当您使用 SpecFlow+Runner/Specrun 时,您可以在此处找到如何为不同的构建服务器配置它的文档:http://specflow.org/plus/documentation/SpecFlowPlus-and-Build-Servers/
我使用 SpecFlow(+SpecRun) 和 NUnit 框架 (v.3.8.1.0) 编写了 selenium 测试。我已将 Jenkins 配置为 运行 这些测试。我的Jenkins Windows批处理命令如下:
"C:\Program Files (x86)\NUnit.ConsoleRunner.7.0\tools\nunit3-console.exe"
C:\Projects\Selenium\ClassLibrary1\PortalTests\bin\Debug\PortalTests.dll
--test=TransactionTabTest;result="%WORKSPACE%\TestResults\TestR.xml";format=nunit3
当我触发构建测试似乎开始 运行ning 时,我已经到达 NUNIT3-CONSOLE [inputfiles] [options] 的末尾,微调器指示测试正在 运行ning但它实际上永远不会结束,估计剩余时间是:N/A.
现在,当我 运行 这个脚本 windows cmd.exe:
"[PATH to Console.exe]\nunit3-console.exe" PortalTests.dll -- test=TransactionTabTest
此测试成功通过,在 VS 中也是如此。
现在,我知道这是一个非常笼统的问题,但任何线索都将不胜感激。
当您使用 SpecFlow+Runner/Specrun 时,您可以在此处找到如何为不同的构建服务器配置它的文档:http://specflow.org/plus/documentation/SpecFlowPlus-and-Build-Servers/