RSS Log in
 

Invariably as a project and its associated test suite gets larger, (some) Developers will start marking unit tests with the ‘Ignore’ attribute in the hope to get back to it later on. More often than not, it never happens and things can quickly get out of hand with dozens of tests no longer running. To keep track of the number of ignored tests, ReSharper’s To-do Explorer is a good alternative to using Visual Studio’s Find window repetitively.

 

First, in Visual Studio, go to ReSharper > Options and drill-down to To-do Items :

 

To-do Items

 

Next click on the Create button to add a new pattern. In the Edit Pattern dialog, insert the following regular expression:

(?-i:(?<!\.)\b(Ignore)\b(?!\.))

 

Tick the In identifiers checkbox and set the Title, Color and Icon. Press OK.

Edit Pattern

 

Next click on the Create button to add a new filter. In the Edit Filter dialog, set the Title and select the Ignore pattern we’ve just created in the previous step. Press OK.

Edit Filter

 

Close the ReSharper Options dialog and bring up the To-do Explorer window - use either CTRL + ALT + D (VS bindings) or go to ReSharper > Windows > To-do Items. You should now see how many tests are being ignored:

To-do Explorer


Comments are closed
© Copyright 2012 TheBooleanFrog Powered by: BlogEngine.NET|Credits|Subscribe via RSS

Follow

twitter linkedin linkedin rss

TheBooleanFrog

Programming sticky notes and other distractions...