Show Covering Tests with dotCover

One of the new features dotCover has added is the ability to find tests that cover a certain piece of code. Something remotely similar has been available in ReSharper, although it has been kind of an archaic solution (i.e. Find Usages on Method calls, locate Test assemblies in Result window).

dotCover makes this easier by providing quick access to this information and extends it in functionality.

Below we can see some tests from an MVC application. Let’s run Code Coverage on it using dotCover first.

image

Now let’s switch over to the Source Code and select some random source code, in this case the MembershipService.ChangePassword line in the ChangePassword action:

image

 

 

In order to see the tests that cover this line of code, we can either press the default key combination of Ctrl+Alt+K or select the option Show Covering Tests from the dotCover:

image

dotCover will then display a small window showing all the different tests that cover that line of code.

image

At this point, we can run the selected tests or add them to the existing ReSharper Test Runner session. This allows us to easily jump from specific sections of code to the corresponding tests and execute them instantly.

One minor note: The default key mapping conflicts with KeePass, but you can easily re-assign it via Visual Studio Tools | Options | Keyboard, or do as I did and change KeePass to Ctrl+Alt+P (P as in Password…makes more sense).

SNAGHTML5841541


Posted 07-06-2010 10:58 PM by Hadi Hariri
Filed under: ,

[Advertisement]

Comments

list of social bookmarking sites wrote re: Show Covering Tests with dotCover
on 01-17-2013 10:25 PM

N78GSu Muchos Gracias for your article.Much thanks again. Awesome.

discount imitrex wrote re: Show Covering Tests with dotCover
on 01-26-2013 11:25 PM

Uq0Ekf Muchos Gracias for your blog article.Really looking forward to read more. Much obliged.

pills for weight loss wrote re: Show Covering Tests with dotCover
on 01-31-2013 10:58 PM

Lab1Le Wow, great blog.Really looking forward to read more. Cool.

loss weight pills wrote re: Show Covering Tests with dotCover
on 02-01-2013 6:04 PM

EL2zyi I loved your blog post. Will read on...

buy viagra online wrote re: Show Covering Tests with dotCover
on 02-03-2013 4:54 AM

cdGyUo I really enjoy the article.Thanks Again. Really Great.

buy viagra wrote re: Show Covering Tests with dotCover
on 02-03-2013 5:55 PM

Xtv3TQ Thank you ever so for you article post. Really Great.

buy imitrex online wrote re: Show Covering Tests with dotCover
on 02-13-2013 6:52 PM

n6KxAP Thank you ever so for you article.Really thank you! Awesome.

buy imitrex online wrote re: Show Covering Tests with dotCover
on 02-13-2013 7:21 PM

AgvsZE I truly appreciate this blog post. Cool.

buy imitrex generic wrote re: Show Covering Tests with dotCover
on 02-24-2013 9:33 AM

WqUrDR I truly appreciate this blog article.Thanks Again. Really Cool.

clomid no prescription wrote re: Show Covering Tests with dotCover
on 02-27-2013 8:14 AM

uycivY Awesome post.Really looking forward to read more. Awesome.

clomiphene 25 mg wrote re: Show Covering Tests with dotCover
on 02-27-2013 8:16 PM

QYNcB3 Thanks for the blog.Really thank you! Keep writing.

buy discount viagra online wrote re: Show Covering Tests with dotCover
on 03-02-2013 5:32 PM

2WTDVA Really appreciate you sharing this post.Really looking forward to read more.

bookmaring service wrote re: Show Covering Tests with dotCover
on 03-13-2013 1:28 PM

E6EMKe A big thank you for your post.Really looking forward to read more. Awesome.

social bookmarks wrote re: Show Covering Tests with dotCover
on 03-14-2013 10:56 AM

1EOnxV I appreciate you sharing this article post.Thanks Again. Will read on...

buy social bookmarks wrote re: Show Covering Tests with dotCover
on 03-24-2013 11:12 PM

B33LwU I really liked your blog article. Awesome.

Social bookmarks wrote re: Show Covering Tests with dotCover
on 04-03-2013 10:24 AM

ljED5w Looking forward to reading more. Great post.Thanks Again. Really Cool.

funny shirts wrote re: Show Covering Tests with dotCover
on 04-05-2013 4:25 PM

Fantastic blog.Thanks Again. Really Cool.

grizzly bears wrote re: Show Covering Tests with dotCover
on 04-06-2013 6:00 PM

Thanks again for the article.Much thanks again. Awesome.

buy social bookmarks wrote re: Show Covering Tests with dotCover
on 04-07-2013 6:58 PM

dccOrP I loved your blog.Really thank you! Will read on...

buy social bookmarks wrote re: Show Covering Tests with dotCover
on 04-12-2013 10:30 PM

t9hjQ3 wow, awesome blog post.Much thanks again. Cool.

Social bookmarks wrote re: Show Covering Tests with dotCover
on 04-13-2013 11:35 AM

cn1tP2 I really like and appreciate your post. Really Great.

Social bookmarks wrote re: Show Covering Tests with dotCover
on 04-28-2013 4:56 AM

qPkEfA Really enjoyed this article.Much thanks again.

best compact digital cameras wrote re: Show Covering Tests with dotCover
on 05-14-2013 8:56 AM

vt8LPV Thanks again for the blog.Really thank you! Great.

modular homes upstate NY wrote re: Show Covering Tests with dotCover
on 06-05-2013 7:32 AM

axePzT Very neat blog post.Really looking forward to read more. Fantastic.

cheap social bookmarks wrote re: Show Covering Tests with dotCover
on 06-19-2013 7:27 PM

JOhH1l Great article. Much obliged.

social bookmarks wrote re: Show Covering Tests with dotCover
on 06-21-2013 8:27 AM

iVvqkW Say, you got a nice post.Really thank you! Keep writing.

great service wrote re: Show Covering Tests with dotCover
on 07-04-2013 9:01 AM

HKLx8T Thanks again for the article. Awesome.

news wrote re: Show Covering Tests with dotCover
on 07-08-2013 8:52 PM

NOw3B9 I truly appreciate this blog post.Thanks Again. Awesome.

news wrote re: Show Covering Tests with dotCover
on 07-12-2013 9:07 PM

1z2SHR Im thankful for the article.Thanks Again. Great.

buy viagra online cheap wrote re: Show Covering Tests with dotCover
on 07-23-2013 12:22 PM

Really informative article.Thanks Again. Will read on...

buy cialis online cheap wrote re: Show Covering Tests with dotCover
on 07-24-2013 1:54 PM

I really liked your blog.Much thanks again. Really Great.

best news on earth wrote re: Show Covering Tests with dotCover
on 07-26-2013 8:37 AM

Ay4s97 Thank you for your post.

buy social bookmarks wrote re: Show Covering Tests with dotCover
on 07-28-2013 9:45 PM

yET17H Thanks-a-mundo for the blog.Really thank you! Will read on...

best news wrote re: Show Covering Tests with dotCover
on 08-02-2013 11:29 PM

WaX9Zx Thanks-a-mundo for the post.Thanks Again. Fantastic.

amazing news wrote re: Show Covering Tests with dotCover
on 08-03-2013 6:24 PM

CkUxhz Very good article.Really looking forward to read more. Will read on...

great link buildng wrote re: Show Covering Tests with dotCover
on 08-19-2013 7:27 AM

IsXFWS I cannot thank you enough for the blog article.Really thank you! Want more.

awesome links for you wrote re: Show Covering Tests with dotCover
on 08-19-2013 6:52 PM

OCeKOE Appreciate you sharing, great article post. Great.

great link buildng wrote re: Show Covering Tests with dotCover
on 08-21-2013 10:53 PM

PdmPWF A big thank you for your article post.Thanks Again. Will read on...

great seo service wrote re: Show Covering Tests with dotCover
on 09-03-2013 8:26 PM

vtC8ru Really appreciate you sharing this blog.Much thanks again. Awesome.

seo service wrote re: Show Covering Tests with dotCover
on 09-06-2013 3:00 AM

58Q4np wow, awesome post.

online business wrote re: Show Covering Tests with dotCover
on 09-11-2013 4:54 PM

gne9gf Thanks again for the blog.Really thank you! Really Great.

only for 5 dollars wrote re: Show Covering Tests with dotCover
on 09-13-2013 12:47 PM

M1s1iK Great, thanks for sharing this article.Thanks Again. Keep writing.

cheap seo work wrote re: Show Covering Tests with dotCover
on 09-29-2013 7:02 PM

xKlHDo A round of applause for your blog.Thanks Again. Awesome.

link building team wrote re: Show Covering Tests with dotCover
on 10-01-2013 8:30 AM

mr6MkE Appreciate you sharing, great article post.Thanks Again. Much obliged.

best link build wrote re: Show Covering Tests with dotCover
on 10-15-2013 7:48 AM

XqYV7G I truly appreciate this post.Much thanks again. Much obliged.

link building wrote re: Show Covering Tests with dotCover
on 10-25-2013 1:04 PM

8vUvXO Very neat blog post.Really thank you! Fantastic.

top seo guys wrote re: Show Covering Tests with dotCover
on 10-31-2013 3:31 AM

1rKbwH Im grateful for the article.Really looking forward to read more. Cool.

awesome site wrote re: Show Covering Tests with dotCover
on 11-21-2013 12:57 AM

fa7Y3z Say, you got a nice blog post.Thanks Again. Will read on...

you want this now wrote re: Show Covering Tests with dotCover
on 12-14-2013 7:38 PM

GnNNG2 Very informative post.Much thanks again. Really Cool.

stunning seo guys wrote re: Show Covering Tests with dotCover
on 01-10-2014 4:47 AM

YeR65V I loved your article.Really thank you! Will read on...

awesome things! wrote re: Show Covering Tests with dotCover
on 02-06-2014 3:18 AM

fMk6xI Really enjoyed this article post.Much thanks again. Will read on...

check it out wrote re: Show Covering Tests with dotCover
on 03-25-2014 5:39 AM

viDe28 Thank you for your blog article. Really Cool.

check it out wrote re: Show Covering Tests with dotCover
on 03-25-2014 6:05 AM

rdYpJR Enjoyed every bit of your blog.Really looking forward to read more. Keep writing.

Add a Comment

(required)  
(optional)
(required)  
Remember Me?

About The CodeBetter.Com Blog Network
CodeBetter.Com FAQ

Our Mission

Advertisers should contact Brendan

Subscribe
Google Reader or Homepage

del.icio.us CodeBetter.com Latest Items
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online
Subscribe with myFeedster
Add to My AOL
Furl CodeBetter.com Latest Items
Subscribe in Rojo

Member Projects
DimeCasts.Net - Derik Whittaker

Friends of Devlicio.us
Red-Gate Tools For SQL and .NET

NDepend

SlickEdit
 
SmartInspect .NET Logging
NGEDIT: ViEmu and Codekana
LiteAccounting.Com
DevExpress
Fixx
NHibernate Profiler
Unfuddle
Balsamiq Mockups
Scrumy
JetBrains - ReSharper
Umbraco
NServiceBus
RavenDb
Web Sequence Diagrams
Ducksboard<-- NEW Friend!

 



Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers

 

Community Server (Commercial Edition)