I have a .NET Core test project that uses Xunit 2.2. Some of my tests are marked with traits.
[Fact]
[Trait("Color", "Blue")]
public void TestBlue()
{
}
What is the right command line syntax for "dotnet test" to only run tests where the trait Color == Blue ?
I'm using .NET Core CLI 1.0.0-rc4 which uses csproj, not project.json.
I'm trying to use dotnet test --filter $something
, but whatever I use for $something, I see this error:
Error: [xUnit.net 00:00:00.7800155] E2ETests: Exception filtering tests: No tests matched the filter because it contains one or more properties that are not valid ($something). Specify filter expression containing valid properties (DisplayName, FullyQualifiedName) and try again.