Skip to content

Make TagsAttribute apply to inner classes #437

@derekgreer

Description

@derekgreer

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions