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

Notification

Icon
Error

Some tests stay on status 'Running (First time run)'
isb-ik
#1 Posted : Tuesday, July 26, 2016 4:47:28 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 7/26/2016(UTC)
Posts: 4
Location: Germany

I run NCrunch 2.24 on Visual Studio 2015 with NUnit 3.4.1 on two different machines. On both maschines all tests starts but not all tests finishes.
In the NCrunch Tests window this tests shows the state 'Running (First time run') but never finishes.
If I change some code in this tests (i.e. the function name) the test runs immediately, but after the next build the same tests have the same problems.
Remco
#2 Posted : Tuesday, July 26, 2016 11:40:32 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi, thanks for sharing this issue.

Is there a pattern as to which tests are hanging? Is it possible to examine the test behaviour by running them with the debugger (under NCrunch)? My gut feel is that these tests may have some state or sequence related assumptions causing them to hang (see http://www.ncrunch.net/documentation/considerations-and-constraints_test-atomicity).

NCrunch does have timeout enforcement to stop tests from hanging indefinitely, but unfortunately it isn't perfect. If the tests are hanging on low level service calls, it's possible for them to hang forever if NCrunch isn't able to abort their execution thread.
isb-ik
#3 Posted : Wednesday, July 27, 2016 12:43:58 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 7/26/2016(UTC)
Posts: 4
Location: Germany

It seems to be a problem with the NUnit Version. First I have tried NUnit 3.2.1 but the problem was the same. Then I changed back to NUnit 2.6.3 and then all works fine.
Remco
#4 Posted : Wednesday, July 27, 2016 1:27:39 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
isb-ik;9052 wrote:
It seems to be a problem with the NUnit Version. First I have tried NUnit 3.2.1 but the problem was the same. Then I changed back to NUnit 2.6.3 and then all works fine.


NCrunch uses a completely different adapter for NUnit v2, so this suggests it's something NUnit v3/NCrunch related ...

Are you able to reproduce anything consistent that you can share with me?
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.074 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download