machine.specifications icon indicating copy to clipboard operation
machine.specifications copied to clipboard

Make TagsAttribute apply to inner classes

Open derekgreer opened this issue 4 years ago • 0 comments

I organize my specs using a category class with inner classes for each context

class ConsumeSpecs
{
   [Subject("Consuming")]
   class when_consuming
   {
        // ...
   } 
}

This allows multiple contexts to be grouped logically and also ensures that file names don't end up reflecting the spec name (e.g. when_consuming.cs) which is undesirable for several reasons.

I'd also like to have Resharper display my tests by Category, but it isn't recognizing [Tags] on the outer class and adding it to each spec is noise. Is there a way to report to Resharper the [Tags] from containing classes?

derekgreer avatar Jun 04 '21 11:06 derekgreer