Daily Usage Issues

Any plans to support NCrunch with enabled code contracts?

Started by GreenMoose on 7,229 views

Hi,

Found the older thread http://forum.ncrunch.net/yaf_postst110_exception-when-using-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.

Edited

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
For anyone interested, 1.40b has just been released including the above change.

Post a reply

Log in to reply.