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

Notification

Icon
Error

(1) Edit & Continue (2) Fakes Questions
paulrogero
#1 Posted : Monday, June 4, 2012 8:27:22 PM(UTC)
Rank: Member

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

Was thanked: 4 time(s) in 4 post(s)
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.co.../hh549176%28v=vs.110%29)

Any chance to work around these two issues?

Thanks,

Paul

Remco
#2 Posted : Monday, June 4, 2012 11:54:39 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
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
paulrogero
#3 Posted : Tuesday, June 5, 2012 12:04:01 AM(UTC)
Rank: Member

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

Was thanked: 4 time(s) in 4 post(s)
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
1 user thanked paulrogero for this useful post.
Remco on 6/5/2012(UTC)
Qbunia
#5 Posted : Monday, June 26, 2017 12:14:01 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/26/2017(UTC)
Posts: 2
Location: Poland

Thanks: 2 times
What about 1st question? We are past 5 years from date when question was made. Is there any chance we will get this feature?
Remco
#6 Posted : Monday, June 26, 2017 11:23:39 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Qbunia;10693 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.
1 user thanked Remco for this useful post.
Qbunia on 6/27/2017(UTC)
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.037 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download