Build/Test Issues

Black dots with xUnit.net 1.9.0.1566 and NCrunch 1.37.0.46b

Started by JesseBuesking on 6,537 views

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.

[img=http://i44.tinypic.com/ezic7a.png]Is this right?[/img]

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!
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


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.

Post a reply

Log in to reply.