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

Notification

Icon
Error

Parallel Test Execution
CoolBreeze
#1 Posted : Friday, April 6, 2018 7:45:25 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 7/11/2014(UTC)
Posts: 79
Location: United States of America

Was thanked: 9 time(s) in 9 post(s)
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
Remco
#2 Posted : Friday, April 6, 2018 11:40:05 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 929 times
Was thanked: 1256 time(s) in 1169 post(s)
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?
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.026 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download