Build/Test Issues

Parallel Test Execution

Started by CoolBreeze on 2,856 views

Started new sw dev project. Added test project with Nunit, NCrunch.

I created 2 tests. NCrunch Tests view showed both tests. I was able to select either test and run it.

I have two modules which read data by using two different methods: 1) Linq, 2) Sql

Test 2 called each of the reader methods to read the data.

I was able to select test 2 and run it debug or not debug. After getting the data the test is supposed to confirm that both methods got the same data:

Assert.That(TeamsObj.Items, [Is].EquivalentTo(TeamsBySqlObj.Items))

The Assert was throwing an exception stating the two collections were different but I couldn't figure out
which Item in the 133 in the Items list was causing the problem.

I created an Equality Comparer and added it like so:

Assert.That(TeamObj.Items, [Is].EquivalentTo(TeamsBySqlObj.Items).Using(EqualityObj))

NCrunch started to state it couldn't run test 2 because it took too long and b\c there was no parallel test execution
since I was running tests manually.

I removed the Using part and NCrunch still won't show test 2 in the NCrunch Tests window.

Visual Studio 2013
NCrunch 3.14.0.1


Thanks, Ed
Hi Ed,

Thanks for posting!

When you say NCrunch won't show the test in the Tests Window, do you mean that the test is not completing its execution and the filters are hiding it? Or has the test somehow disappeared and is not being discovered? Are you able to share any more details around how these tests are being declared in your code?

Post a reply

Log in to reply.