运行NUnit测试的Azure管道

时间:2019-11-11 03:45:06

标签: azure-devops azure-pipelines azure-pipelines-build-task

在我的Azure生成管道中,Azure测试任务成功运行,但测试尚未运行。 This is my test task

1 个答案:

答案 0 :(得分:1)

  

在我的Azure构建管道中,Azure测试任务成功运行,但测试尚未运行。

就像Shayki Abramczyk指出的那样。您应该在选项测试文件中指定测试dll。且默认值应为:

**\*test*.dll
!**\*TestAdapter.dll
!**\obj\**

enter image description here

查看文档Visual Studio Test task,了解更多详细信息。

更新

  

当我这样做时,它说没有找到与模式匹配的测试程序集:    Test.dll,!*** TestAdapter.dll,! \ obj **

我们需要在测试dll文件之前构建解决方案:

enter image description here

希望这会有所帮助。