I want to custom group my tests by function so I'm using the nunit Category attribute, like this:
[Test, Category("Cat1")]
public void SomeMethod() { }
[Test, Category("Cat2")]
public void AnotherMethod() { }
But in Visual Studio the categories do not show up, all I see are the defaults to group by duration or test outcome. I'm using:
What am I missing? This seems like it should be a no-brainer
You should be able to group your tests by Traits
, which includes the Category
attribute. If you can't then you may need to update your Visual Studio to at least Update 1. A more detailed description, targeted at the MS framework is here but the TestAdapter seems to allow it to work just fine with the NUnit Category attribute.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With