Inspections (.NET) - Configure to consider unit tests as used

Since unit test fixtures and methods are executed by reflection, the code inspection tool currently considers all unit tests as 'not used'. With thousands of tests in hundreds of fixtures, this adds lots of noise to the inspections results. So much noise that it gets hard to figure out what's valid.

On my development environment, I've set some R# external annotations with rules to consider the NUnit attributes as MeansImplicitUse. As far as I can see, the inspection tool only understands R# project settings, though.

Is there any way to configure the inspection settings to consider classes/methods with certain attributes as used?

Please sign in to leave a comment.