Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

No code coverage for references assembly.
ivoloshin
#1 Posted : Monday, June 18, 2012 5:22:34 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/18/2012(UTC)
Posts: 6
Location: Jacksonville, FL

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
Could someone please point out steps for me to troubleshoot this? I have a MSUnit test project referencing another test project. Code in the unit test project appears to mark code coverage correctly. Code in the referenced assembly does not. I realize that this may be a missing library compilation somewhere, but I'm not sure where to start looking.

VS 2010
MSUnit
NCrunch 1.39.0.15b

Thanks,
Ilya
Remco
#2 Posted : Monday, June 18, 2012 9:29:47 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,987

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Hi Ilya -

Check that the reference from your test project is actually a ProjectReference and not just an assembly Reference. NCrunch relies on project references to identify the dependencies between projects. If the reference is pointing at the assembly in the built output path, NCrunch won't identify the dependency and you won't see code coverage outside your test project.

I hope this does the trick!


Cheers,

Remco
ivoloshin
#3 Posted : Tuesday, June 19, 2012 11:16:12 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/18/2012(UTC)
Posts: 6
Location: Jacksonville, FL

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
Thank you for your reply, Remco.

I verified that all references are project references. In the Metrics window it appears that some of the projects are showing code coverage, while others do not. I checked all the settings I could think of to see any differences between those that work and those that do not with out any luck. I also tried using Dynamic Analysis to see if that helps and it did not.

One thing that I am doing is running only selected tests. I never ran all tests. It'll take hours to do so, but you think that may help, I'll go ahead and do it.

Are there any other things I could check to help get this going?

Thanks,
Ilya
Remco
#4 Posted : Tuesday, June 19, 2012 9:56:57 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,987

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Would you be able to help by answering some of the questions below? This will help me to narrow down where the issue is:

- Do you see any code coverage markers at all in the problematic project? (i.e. do you see any black markers?)
- Are there errors of any kind showing in the Tests Window?
- Are there errors of any kind showing in the Processing Queue?
- Have you tried your solution with the newest version of NCrunch? (1.40b was released less than 24 hours ago, and it contains many fixes)
- Can you submit a bug report after you've run a few of the tests that have problems? I'll then check the log file for any mapping issues


Thanks!

Remco
ivoloshin
#5 Posted : Wednesday, June 20, 2012 12:01:42 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/18/2012(UTC)
Posts: 6
Location: Jacksonville, FL

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
Remco,

I have installed the latest version of NCrunch and the problem seems to be fixed! Thank you for your help!

Ilya
1 user thanked ivoloshin for this useful post.
Remco on 6/20/2012(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.038 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download