如何忽略构建中的测试项目?

时间:2018-12-03 23:04:27

标签: .net-core azure-devops

我有一些集成测试,我不想由Azure DevOps中的.NET Core Test命令运行。如何过滤掉它们?

我尝试设置一个特定的项目以使用Parameters.TestProjects变量进行测试,但是没有效果。

1 个答案:

答案 0 :(得分:2)

如果我正确回答了您的问题,那么答案是:

添加“!”在测试程序集之前标记,例如:

**\*integrationtests.dll
!**\*TestAdapter.dll
!**\obj\**

因此将包括integrationtests.dll,而排除其他两行。

enter image description here

相关问题