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

Notification

Icon
Error

Nested xUnit tests ignored
landy
#1 Posted : Wednesday, March 14, 2012 5:20:00 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/14/2012(UTC)
Posts: 2

Hi, I'm trying NCrunch and I have some issue with tests inside nested classes. NCrunch seems to ignore those tests.

screen of my VS with test results:
http://imageshack.us/pho...s/214/ncrunchnested.png/
Remco
#2 Posted : Wednesday, March 14, 2012 8:36:00 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Hi,

Thanks for posting!

NCrunch uses Gallio for Xunit integration under the hood, and the integration between these frameworks currently doesn't support the identification of nested Xunit tests while using static analysis. To work around this, you can change the 'Framework utilisation type for Gallio/Xunit' under your solution settings to 'UseDynamicAnalysis', though note that this will likely have an impact on the processing speed of NCrunch.


Cheers,

Remco
landy
#3 Posted : Wednesday, March 14, 2012 10:32:33 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/14/2012(UTC)
Posts: 2

Thx for quick response :)
larsw
#4 Posted : Sunday, March 18, 2012 8:25:51 PM(UTC)
Rank: Member

Groups: Registered
Joined: 11/22/2011(UTC)
Posts: 15
Location: Oslo, Norway

Was thanked: 3 time(s) in 3 post(s)
Hi,

I'm experiencing this as well. Will you fix this in a later release?

cheers,

--larsw
--larsw
Remco
#5 Posted : Monday, March 19, 2012 8:30:06 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Hi Larsw -

The cause of this problem sits between the integration with Gallio and Xunit - it isn't actually part of NCrunch. Sadly this means that the most effective way to fix the problem would be to introduce an integration point directly between NCrunch and Xunit, which would require quite a bit of investment. I can't commit to fixing this in the short term, though as for the long term, we'll have to see :)


Cheers,

Remco
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