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 correct command line syntax for "dotnet test" to run tests where the dash is Color == Blue?
I am using the .NET Core CLI 1.0.0-rc4 which uses csproj and not project.json.
I am trying to use dotnet test --filter $something
, but no matter what I use for $ something, I see this error:
Error: [xUnit.net 00: 00: 00.7800155] E2ETests: exception filtering tests: no tests match the filter because it contains one or more invalid properties ($ something). Specify a filter expression that contains valid properties (DisplayName, FullyQualifiedName) and try again.
source
share