Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make TagsAttribute apply to inner classes #437

Open
derekgreer opened this issue Jun 4, 2021 · 0 comments
Open

Make TagsAttribute apply to inner classes #437

derekgreer opened this issue Jun 4, 2021 · 0 comments

Comments

@derekgreer
Copy link

derekgreer commented Jun 4, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants