Inherit every test class from a new base class

Hi,

What's your suggestions for the following?

1. Find all classes in the project decorated with [TestClass] (we have about 90 of such)
2. Inherit it from BaseTest class, if not yet.

Some of classes to be processed are descendants of classes that are not BaseTest.

TIA!
Vadim

3 comments
Comment actions Permalink

Hello Vadim,

1. You may use "ReSharper | Find | Search with pattern" for this. Unfortunately, ReSharper 'Go To Symbol' cannot search attributes for now.
2. If you mean that you'd like to inherit all 90 classes from base class in a batch, then, unfortunately, there's no such action in Resharper.

Thank you.

0
Comment actions Permalink

Great!

I cannot use `Search with Pattern`:
any attribute in bracket causes the Find button gets disabled with "Pattern is ambiguos" tooltip.
Could you provide a pattern sample for such search?

Thanks

0
Comment actions Permalink

Hello Vadim,

Thanks for that - it appears to be a bug in ReSharper here.

We've opened two requests regarding your topic here in YouTrack:
- http://youtrack.jetbrains.com/issue/RSRP-336499
- http://youtrack.jetbrains.com/issue/RSRP-336514

Thanks again.

0

Please sign in to leave a comment.