Build/Test Issues

Tests from base class don't run if the derived class is in a different project

Started by GraemeF on 7,359 views

Hi

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

[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.
Yes - this does look like a bug. An interesting one too. Thanks for the heads up - I'll look into it :)

Post a reply

Log in to reply.