This project is read-only.


Test categorization


There is a nice Category feature in the R# test runner but unfortunately it appears it doesn't work with XUnit. Best I can tell there is no category attribute in Xunit and I can request that with them. There is a category attribute in component model data annotations that could perhaps be used? Or some other way to get this to work possibly?
Closed Dec 5, 2013 at 11:15 AM by mattellis


mattellis wrote Jun 16, 2011 at 11:06 PM

The trouble is that xunit doesn't have a Category attribute as such. It has the Trait attribute, but that's very open, allowing any custom name/value pair to be associated with a test method. What would you use as a category attribute? I'd imagine using a trait with a key value of "category" (case insensitive). What do you think?

rsenna wrote Sep 14, 2012 at 6:28 PM

How about adding all traits as "categories" to the R# runner? Just add the name/value pair as a single formatted string (ex: "name: value").

biohazard999 wrote Feb 12, 2013 at 12:08 PM

+1 for this :)

mattellis wrote Feb 28, 2013 at 9:49 PM

Fixed in changeset e14edfe7c40c