title: Filter uncategorized tests in vstest.console.exe
body: <p>I have a visual studio test assembly. There are several test methods of which a few methods have <code>TestCategoryAttribute</code> on them and others don't. I want to filter out all the methods that do not contain the attribute from getting executed, i.e, uncategorized tests should not be executed.</p>
  
  <p>I am trying to have something like this which does not work.
  <code>vstest.console.exe MyTests.dll /TestCaseFilter:"(TestCategory!=)"</code></p>
  
  <p>Looking for the right syntax. I am using Visual Studio 2015.</p>