Names of tests declared in base classes should be default reflected names

Bug #1453793 reported by Silvio Jeschofnik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
NUnit V2
Won't Fix
Undecided
Unassigned

Bug Description

If you have a base class containing tests

public abstract class BaseClass
{
   [Test]
   public void Test() {}
}

and a derived class

[TestFixture]
public class TestClass : BaseClass {}

and execute the tests of this class, the name of the executed test in result will be Namespace.TestClass.BaseClass.Test1
This behavior is not expected and the name should be Namespace.TestClass.Test1 instead. It will be unique anyway.

Kind Regards

Revision history for this message
Charlie Poole (charlie.poole) wrote :

As indicated here https://launchpad.net/nunitv2
NUnit is no longer maintained on Launchpad.

The version 2 project is at http://github.com/nunit/nunitv2 but is actually no longer maintained. We are aware of the problem you describe and have eliminated it in version 3. Currently, version 3 reports the names correctly.

If you are following NUnit on Launchpad, you probably missed the final release of V2, which was 2.6.4. You can find it on GitHub.

NUnit 3.0 is in beta and can also be found on GitHub at http://github.com/nunit/nunit

Changed in nunitv2:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.