Hi,
I have XUnit 1.9.2 tests with a custom TraitAttribute. Tests are found when the test class is not attributed with a custom trait attribute.
The trait attribute is:
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Assembly | AttributeTargets.Method, AllowMultiple = true, Inherited = true)]
public class CustomTestCategoryAttribute : Xunit.TraitAttribute
{
internal CustomTestCategoryAttribute(string category)
: base("Category", category)
{
}
}
And a usage:
[CustomTestCategory("cat")]
public class MyTest
{
Best Regards,
Piotr