Invalid Test Case Filter in VNEXt Builds

By : Ingo B

when running a VNEXT build on TFS 2015, with the build step "Run Functional Tests" i geht the error message:

[warning]DistributedTests: Error : Invalid testcase filter '!CommitTest'. Provide correct testcase filter and try again.

since there is no online documentation about test case filters i just copied the ones from my previous XAML build out of my VS 2013 but it does not work

By : Ingo B

the correct way to do so is:


hope helps everyone else

By : Ingo B

If you are using the Visual Studio Test step instead, in the Test Filter criteria box, you enter the value for the switch /TestCaseFilter.

For example: if you don't want to run the test category CommitTest, you would enter:


If you look 4 or 5 lines above this error you should find the line where vstest.console.exe is called. Whatever you entered into the textbox will be set to the /TestCaseFilter switch:

Executing C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe "unit.Test.dll" /TestCaseFilter:"TestCategory!=CommitTest"

By : mrfelis

This video can help you solving your question :)
By: admin