Visual studio test runner - criteria is filtering all tests

对着背影说爱祢 提交于 2019-12-11 20:24:30

问题


Using VS 2013 and TFS 2013, I have 4 unit tests but I want a TFS build to run only one of them. For this I have assigned [TestCategory("bvt")] as an attribute of the method.

I edit the build definition, and within the "Add/Edit Test Run" dialog I give a value for "Test case filter:" of "TestCategory=bvt"

With the filter added, no tests are executed. If I remove the filter then a team build using "ReleaseTfvcTemplate.12.xaml" result in all 4 tests being executed. I've tried wrapping the filter in quotes etc but haven't been able to get it to work - where am I going wrong?


回答1:


I solved this by reverting back to using the old default.xaml rather the the new TfsDefault.xaml



来源:https://stackoverflow.com/questions/27799259/visual-studio-test-runner-criteria-is-filtering-all-tests

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!