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

Notification

Icon
Error

2.11.0.12 and xUnit 2 beta 5 inherited tests
Mpdreamz
#1 Posted : Tuesday, January 6, 2015 9:52:58 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 1/13/2013(UTC)
Posts: 1
Location: Netherlands

After upgrading to beta 5 of xUnit my inherited test cases were no longer found in NCrunch (but still are in the visual studio test explorer)

Code:

public abstract class TestsBase
{
    [Fact]
    public void FindMe() {
    }
} 

public class TestsChild : TestBase {
     [Fact]
     public void FoundMe() {
     }
}


FindMe() is not listed by NCrunch in this case but is by the default xunit visual studio runner.

NCrunch only finds FoundMe()

Remco
#2 Posted : Tuesday, January 6, 2015 11:00:05 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, thanks for sharing this issue. I've immediately managed to reproduce it as you've described.

It looks as though this is specific to NCrunch's static analysis method. I'm not sure yet where the issue lies but will do my best to have it fixed for the release build of 2.11.

Meanwhile, you should be able to work around the problem by changing your 'Framework utilisation type for XUnit V2+' to 'DynamicAnalysis'. This is an NCrunch solution-level configuration setting.


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.020 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download