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

Notification

Icon
Error

Tests from base class don't run if the derived class is in a different project
GraemeF
#1 Posted : Friday, June 3, 2011 9:22:04 AM(UTC)
Rank: Member

Groups: Registered
Joined: 5/14/2011(UTC)
Posts: 12
Location: UK

Thanks: 4 times
Was thanked: 2 time(s) in 2 post(s)
Hi

I've run into the following issue. Given these classes:

Code:
[TestFixture]
public abstract class BaseClassWithTests
{
    [Test]
    public void HelloFromBaseClass()
    {
    }
}

[TestFixture]
public class DerivedClass : BaseClassWithTests
{
}


NCrunch runs the HelloFromBaseClass test within the DerivedClass fixture as I would hope, UNTIL I move the DerivedClass to a different project. Then it will run any tests that are in DerivedClass itself but won't run BaseClassWithTests:HelloFromBaseClass from the DerivedClass fixture.

Bug? :)

G.
Remco
#2 Posted : Friday, June 3, 2011 5:19:31 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Yes - this does look like a bug. An interesting one too. Thanks for the heads up - I'll look into it :)
1 user thanked Remco for this useful post.
GraemeF on 6/3/2011(UTC)
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.059 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download