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

Notification

Icon
Error

Black dots with xUnit.net 1.9.0.1566 and NCrunch 1.37.0.46b
JesseBuesking
#1 Posted : Saturday, February 4, 2012 4:50:41 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 2/4/2012(UTC)
Posts: 1
Location: Fairfax, VA

In my test file, I'm seeing green dots for my tests - makes sense to me.

However, in my actual solution file that defines the functions I'm attempting to test, I'm seeing black dots. It's as if NCrunch cannot link my functions to the tests that are associated to them. This might be a poor setup on my part, so I do apologize if that is the case.

Is this right?

Based on the video in the About section, I *think* my setup is similar. Is there something I need to do to link the tests to the functions they are testing?

Thank you for the awesome tool! It works well for telling me if my tests are working so far!
Remco
#2 Posted : Saturday, February 4, 2012 9:44:27 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,140

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi, thanks for posting!

The first thing that hits my mind is that you may have a strange relationship between your test project and the project under test. Normally this should be a 'project reference', though if you've set this up to be an assembly reference to the compiled binary in the bin\debug directory, then NCrunch won't be aware that the projects should be connected together and it won't show you code coverage for the project under test.

A way you can check this is by opening up your .csproj file and inspecting the syntax around the reference.

It should be something like:

<ProjectReference Include="..\PassingTestSolution.Project1\PassingTestSolution.Project1.csproj">
<Project>{3D219F30-BBE9-421E-9048-4013F0CAEE94}</Project>
<Name>PassingTestSolution.Project1</Name>
</ProjectReference>

And it shouldn't be something like:

<Reference Include="PassingTestSolution.Project1">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\PassingTestSolution.Project1\PassingTestSolution.Project1.dll</HintPath>
</Reference>

Let me know if this solves the issue for you. Otherwise we'll try something else :)


Cheers,

Remco


Envoid
#3 Posted : Wednesday, March 7, 2012 7:58:10 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/7/2012(UTC)
Posts: 3
Location: Shrewsbury, UK

Was thanked: 1 time(s) in 1 post(s)
Just to provide more info; I ran into the same problem (I had an assembly reference) and the solution worked for me.

Great product BTW.
1 user thanked Envoid for this useful post.
Remco on 3/7/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.037 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download