Suggestion: Running unit tests from the method being tested

Now, ReSharper have buttons for running unit tests from the unit test classes themselves.

How about a creating a similar button in context of the actual method being tested? This will let me run all test for that particular method whenever I have done changes, without tracking down the tests testing that particular method.

I guess solution-wide analysis must be active in order for this to work.

Håvard Fjær

1 comment
Comment actions Permalink

Try out dotCover—our new coverage tool, it already has an action you're looking for.

PS In general, this can not be achieved with static code analysis only, cause method under test can be called via reflection for example. On the other hand, coverage analysis provides all necessary information.


Please sign in to leave a comment.