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

Notification

Icon
Error

Unusual behaviour messages..
chillitom
#1 Posted : Friday, June 29, 2012 4:45:32 PM(UTC)
Rank: Member

Groups: Registered
Joined: 4/1/2012(UTC)
Posts: 19

Thanks: 1 times
Was thanked: 3 time(s) in 3 post(s)
Hi Remco,

Trying to understand why we're getting the following messages..

Quote:
NCrunch detected unusual behaviour around the resolution of referenced assemblies required by this project in its test environment. This can often be caused by usage of the 'Copy Referenced Assemblies To Workspace' setting, complex solution layouts, IoC containers, runtime abnormalities or various customisations that may have been applied to your test environment. This may result in abnormal runtime behaviour such as JIT compilation exceptions and code versioning issues.

If your test code appears to be functioning normally, you may be able to safely ignore this warning. If you are experiencing unexpected runtime problems with your tests, you should consider enabling the 'Pre-load all assembly references into test environment' configuration setting for this project under your NCrunch project configuration.

Click here to hide this warning


Could you explain in a little more detail the manner in which NCrunch detects this 'unusual behaviour'? Perhaps future versions of NCrunch could list the operations that the tests were attempting that triggered the warning.

Thanks.

Tom

Remco
#2 Posted : Monday, July 2, 2012 4:04:51 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Hi Tom,

This is effectively a catch-all warning that appears when NCrunch notices abnormalities in the resolution of assembly references inside the test domain. The code that raises this warning works by inspecting the file paths of the assemblies that exist in the test domain after tests have finished executing, and comparing these file paths with the file paths of assemblies that NCrunch was expecting to execute with. As such, there isn't really a way for NCrunch to report on what has caused the abnormalities - as the only information available is that the assembly resolution didn't work as expected.

As the warning states, abnormal reference resolution inside the test environment may not be an issue that requires attention if all tests are executing correctly. The major purpose behind this warning was to help better inform people that experience unusual test behaviour in NCrunch (vs any other test runner) because of the way that NCrunch controls assembly referencing.

I hope this helps!

Cheers,

Remco
Daniel Rose
#3 Posted : Tuesday, July 2, 2013 12:59:33 PM(UTC)
Rank: Member

Groups: Registered
Joined: 10/7/2011(UTC)
Posts: 29
Location: Aachen, Germany

Thanks: 6 times
Was thanked: 5 time(s) in 4 post(s)
I also get these messages, but the tests work fine. Even so, it would be nice to be able to fix this. Could you perhaps list the differences in the paths? That might help me track down why this occurs.

Thank you!
Remco
#4 Posted : Tuesday, July 2, 2013 11:01:01 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Hi Daniel -

The idea behind this warning is to give you a clue of something that may not be right if you are experiencing problems. There are many situations that can cause this warning to appear where there really isn't a problem at all, so as such there may be nothing to fix ... but I agree that the warning could be made more verbose by adding path information. I'll note this down to be adjusted.

Thanks!

Remco
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.047 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download