Possible to show coverage by function rather than line?

Because of the nature of programming, sections of my code can never be hit by a unit tester unless I have a complicated setup (Network exceptions, SQL Server exceptions etc). Would it be possible to provide coverage details by function rather than by line of code within?

0
2 comments
Avatar
Tormod Jervell Steinsholt

On the same note, I'd think that a useful feature would be to Context Run all relevant tests from the production code function or production code line.

0

Dean,
For dotCover 1.0 we'll have only statement coverage.
Next versions will include other types of statistics like function coverage and branch coverage.

Tormod,
It would be possible to get list of tests covering specified function or statement.
This feature will appear in nightly builds during upcoming 2 weeks.

0

Please sign in to leave a comment.