【发布时间】:2015-09-04 01:21:02
【问题描述】:
我目前在 30 多个项目上运行了大约 6000 多个测试。
其中一些测试只能在本地运行,所以已经用属性修饰了:
TestCategory="Manual Tests"
这也适用于任何功能测试,这些都用:
TestCategory="Functional Tests" etc...
我已经阅读了许多关于此的 MSDN 和用户文章,并设置了一个构建以仅运行功能测试
Test Case Filter: TestCategory=Functional Tests
(This successfully runs only the Functional Tests)
问题是,我是否可以使用一个测试用例过滤器来忽略 TestCategory“功能测试”和“手动测试”,而只运行没有使用 TestCategory 属性修饰的测试。
如果使用了以下过滤器没有任何乐趣:
**Test Case Filter:**
!Functional Tests|!Manual Tests
TestCategory!=Functional Tests|Manual Tests
TestCategory!=Functional Tests|!Manual Tests
TestCategory!=Functional Tests|TestCategory=Manual Tests
TestCategory!=Functional Tests||TestCategory=Manual Tests
(TestCategory!=Functional Tests)|(TestCategory=Manual Tests)
(TestCategory!=Functional Tests)||(TestCategory=Manual Tests)
我在带有 TFS 2012(更新 4)的 Visual Studio 2012(更新 4)上运行它
非常感谢
【问题讨论】:
标签: visual-studio-2012 tfsbuild visual-studio-test-runner