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

Notification

Icon
Error

NCrunch doesn't recognize tests with XUnit's RunAsAttribute
jpoehls
#1 Posted : Tuesday, February 3, 2015 5:02:13 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 2/3/2015(UTC)
Posts: 6
Location: United States of America

NCrunch doesn't recognize any tests that use XUnit's RunAsAttribute (more info here: http://bricelam.net/2012...tnet-extensibility.html).

Is there a way to have it recognize these?
Remco
#2 Posted : Tuesday, February 3, 2015 9:45:07 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 975 times
Was thanked: 1305 time(s) in 1210 post(s)
Hi, thanks for posting!

NCrunch doesn't support this extensibility in xunit v1 because it is walled away from it by Gallio. NCrunch relies on Gallio to execute xunit v1 tests on its behalf, and the abstractions enforced by Gallio make the dynamics of this extensibility impossible to implement. You may have some limited success by changing your 'Framework utilisation type for Gallio/Xunit' to 'DynamicAnalysis' (solution-level NCrunch setting), but I would recommend against this as it will severely degrade performance and I am not confident that it will provide a reliable solution.
jpoehls
#3 Posted : Tuesday, February 3, 2015 10:11:16 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 2/3/2015(UTC)
Posts: 6
Location: United States of America

Thanks! So in XUnit v2 this is supported?
Remco
#4 Posted : Tuesday, February 3, 2015 10:31:30 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 975 times
Was thanked: 1305 time(s) in 1210 post(s)
To my knowledge, Xunit V2 doesn't have this feature.
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.042 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download