NCrunch doesn't recognize any tests that use XUnit's RunAsAttribute (more info here: http://bricelam.net/2012/04/xunitnet-extensibility.html).
Is there a way to have it recognize these?
Build/Test Issues
NCrunch doesn't recognize tests with XUnit's RunAsAttribute
Started by jpoehls on 3,605 views
Remco NCrunch Developer
#6930
03 Feb 2015 21:45 UTC
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.
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.
Thanks! So in XUnit v2 this is supported?
Remco NCrunch Developer
#6933
03 Feb 2015 22:31 UTC
To my knowledge, Xunit V2 doesn't have this feature.
Post a reply
Log in to reply.