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

Notification

Icon
Error

Any plans to support NCrunch with enabled code contracts?
GreenMoose
#1 Posted : Sunday, June 17, 2012 3:51:39 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/17/2012(UTC)
Posts: 507

Thanks: 145 times
Was thanked: 66 time(s) in 64 post(s)
Hi,

Found the older thread http://forum.ncrunch.net...ing-Code-Contracts.aspx but couldn't reply in that one so I created this new one.

I tried out NCrunch but unfortunately I get same error popups as stated in the above thread (makes it impossible to use). I don't want to disable code contracts since unit tests rely on them to be in effect.

I also tried out Mighty Moose and even though it hasn't the same user experience as NCrunch has, it does seem to play nice with enabled code contracts (i.e. I don't get that error when running the tests via Mighty Moose).

So are there any plans of getting NCrunch to play nicely with code contracts enabled?

Thanks.
Remco
#2 Posted : Sunday, June 17, 2012 8:43:31 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 Green Moose,

Thanks for posting!

To use code contracts with NCrunch 1.39b, you need to turn on the 'Allow code contract checking' on your NCrunch project-level configuration (you can use multi-select to select all projects in your solution).

1.40b will split this into two options, with the dynamic code contract checking being enabled by default.


Cheers,

Remco
1 user thanked Remco for this useful post.
GreenMoose on 6/17/2012(UTC)
Remco
#3 Posted : Tuesday, June 19, 2012 4:41:59 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)
For anyone interested, 1.40b has just been released including the above change.
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.025 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download