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

Notification

Icon
Error

Failure running tests for NancyFx codebase
sunny
#1 Posted : Thursday, July 17, 2014 9:13:08 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/4/2012(UTC)
Posts: 6

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
Hello,
I was preparing a change request for NancyFx framework, when I enabled nCrunch for the solution and found out that many tests fail.

I succeeded to fix some of them using the "Copy referenced assemblies" for these test projects.

Also, there were about 20 tests which were failing b/c of administrative permissions. I tried to fix them using netsh url registration solution.

So, now the tests don't don't fail b/c of no admin access, but rather just hang, and never finish. Event though I disabled parallel execution and set a short timeout, they still hang.

The same tests run well in resharper.

Please, let me know if you need more information.

Cheers,
Sunny
Remco
#2 Posted : Thursday, July 17, 2014 10:58:12 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 929 times
Was thanked: 1256 time(s) in 1169 post(s)
Hi Sunny,

Are you able to get a debugger onto the code before it hangs? NCrunch has no knowledge of the behaviour of Nancy's test code - it will simply call into it. If there is a difference in the behaviour of the code under test, usually you should be able to identify this by debugging through.

There is some history with people using Nancy under NCrunch, so it is possible that there are overrides in place to detect NCrunch and introduce alternative behaviour.

The timeout enforcement by NCrunch and underlying test frameworks is not 100% reliable. The interruptions triggered by timeouts are handled using Thread.Abort, which will not trigger aborts under certain situations. This makes it possible for the execution thread to hang inside some piece of O/S critical code and be unrecoverable without the test process being torn down.
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.031 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download