Allow Trait filtering from MSBuild runner


Filtering tests is currently supported using the console runner, however there is no support for it through MSBuild. Suggest adding Include and Exclude xml attribues in <xunit> element such as:
<xunit Assembly="%(SourceFiles.FullPath)"
    Xml="$(TestResultDir)\TestResult.%(SourceFiles.FileName).xml" Include="foo=bar" Exclude="baz=biff">
    <Output TaskParameter="ExitCode" PropertyName="XUnitResult" />


BradWilson wrote Aug 4, 2012 at 6:52 PM

We see the MSBuild runner as a non-interactive runner.

Our recommendation for a workaround is to place different test types into different assemblies, rather than use traits for the filtering.

** Closed by BradWilson 08/04/2012 11:52AM

BradWilson wrote Aug 25, 2013 at 9:10 PM

Re-opening for v2.

BriceLambson wrote Oct 1, 2013 at 9:26 PM