这是我的测试程序集模式(配置(
**$(BuildConfiguration)*test*.dll
!**obj**
!**$(BuildConfiguration)*Integration*
触发构建后,这里是集成测试程序集也存在的日志(此文件必须过滤,应在此处(
2019-04-23T13:10:33.6689787Z C:VSTSAgentA1_work1smyappmyapp.Services.TestbinReleasemyapp.Services.Test.dll
2019-04-23T13:10:33.6690018Z C:VSTSAgentA1_work1smyappmyapp.Services.Integration.TestbinReleasemyapp.Services.Integration.Test.dll
由于这个集成测试用例也在运行,我只想运行单元测试用例。
知道吗?
我已经找到了解决方案,这是我的最新配置,它现在完全按预期工作。
**$(BuildConfiguration)*test*.dll
!**obj**
!**myapp*Integration***
!***Microsoft.Owin.Testing.dll*
!**$(BuildConfiguration)*Integration.Test*.dll
!**$(BuildConfiguration)*Microsoft.VisualStudio.TestPlatform*
!**$(BuildConfiguration)*MSTest*
!**$(BuildConfiguration)*Microsoft.Owin.Testing.dll*
!**$(BuildConfiguration)*Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll*
如果您注意到包含此模式的排除路径的行;
!**myapp*Integration***
和以下模式匹配,不会包含在结果中。
2019-04-23T13:10:33.6690018Z C:VSTSAgentA1_work1smyappmyapp.Services.Integration.TestbinReleasemyapp.Services.Integration.Test.dll