Build/Test Issues

(1) Edit & Continue (2) Fakes Questions

Started by paulrogero on 9,679 views

Hi!

I've been trying out NCrunch and really like it so far! I have two questions.

(1) Is there a way for edit & continue to work when using the debug unit test feature of NCrunch?

(2) Is there a way to get the new Fakes (specifically the Shim functionality for mocking non-virtual methods) to work with NCrunch? If I run the unit test under VS 11 RC's test runner then the test works fine. If I run the test using NCrunch I receive an error stating "Microsoft.QualityTools.Testing.Fakes.Shims.ShimNotSupportedException". The documentation for the Fakes tool mentions that the test has to be run under the Intellitrace profiler. (Read: "Under the hood, shim types use callbacks that were injected at runtime in the method MSIL bodies. Therefore, shim types must be run under the IntelliTrace profiler which is configured automatically by Visual Studio and Team Build." from the following URL: http://msdn.microsoft.com/en-us/library/hh549176%28v=vs.110%29)

Any chance to work around these two issues?

Thanks,

Paul

Hi Paul,

Thanks for posting! Right now I see no way to make edit & continue work for NCrunch debugging sessions, as the code being used during the debug session actually originates from the NCrunch workspace (not from the solution you are working in). This does create some interesting complications - but thanks for the suggestion!

Right now there are plans in motion to support Microsoft.Fakes, although right now with Fakes still being very new, there seems to be very limited documentation available on how the Fakes profiler works or how best to integrate with it. Rest assured that this is somewhat of a priority for me and I will implement it as soon as I can find more information about it.


Cheers,

Remco

Edited

Hi Remco,

Thanks for the response! I figured Edit & Continue was not likely possible and your explanation certainly makes sense why.

That's great to hear Fakes are on your road map. I too have noticed the lack of documentation, I wish they had more information available. Hopefully Microsoft will release some more documentation regarding Fakes soon!

Thanks,
Paul
This post has been deleted.
What about 1st question? We are past 5 years from date when question was made. Is there any chance we will get this feature?
Qbunia wrote:What about 1st question? We are past 5 years from date when question was made. Is there any chance we will get this feature?


Hi,

Considering the level of integration required to make this work, and the way in which it changes with every VS release, I realistically don't ever see this happening under NCrunch.

Post a reply

Log in to reply.