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

Notification

Icon
Error

MSpec and IAssemblyContext
Der-Albert.com
#1 Posted : Thursday, February 27, 2014 6:43:50 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 5/17/2011(UTC)
Posts: 209

Thanks: 11 times
Was thanked: 55 time(s) in 51 post(s)
Is NCrunch supporting IAssemblyContext assembly specific Setups and Teardowns?

https://github.com/machi...ions/IAssemblyContext.cs
Der-Albert.com
#2 Posted : Thursday, February 27, 2014 6:57:34 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 5/17/2011(UTC)
Posts: 209

Thanks: 11 times
Was thanked: 55 time(s) in 51 post(s)
And supports it ICleanupAfterEveryContextInAssembly
Remco
#3 Posted : Thursday, February 27, 2014 10:54:02 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Yes. NCrunch does support IAssemblyContext, and I'm fairly certain it should also support ICleanupAfterEveryContextInAssembly, assuming that these features are provided by MSpec itself.

NCrunch calls into MSpec and uses it as a provider to execute tests, so in theory any features implemented (other than test discovery) should be handled by the test runner.

You'll likely notice though that code blocks executed through IAssemblyContext won't be marked as covered by NCrunch. This is because they are not executed by any specific test, so NCrunch has nothing to associate the coverage with. This issue also applies to other frameworks that use global initialise/teardown structures.
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.024 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download