nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #02064
[Bug 841894] Re: UI won't run tests marked Explicit
1) Step by step follows
2) It happens on the context menu but not the run button. Double-clicking does not work either.
3) Hopefully the step-by-step will reproduce the result for you.
Step-by -step
---------------
NUnit GUI config:
Assembly Isolation: Run tests directly in NUnit process, Use seperate AppDomain per assembly
Assembly Reload: Reload before each test run, Reload when test assembly changes
Runtime selection: Select default...
Advanced: Shadow copy enabled.
Create a new Visual Studio C# library project.
Add a reference to the nunit.framework assembly (I'm using 2.6.0.11240)
Add a single testfixture class:
using System;
using System.Diagnostics;
using NUnit.Framework;
namespace Test1
{
[TestFixture]
public class TestFixtureClass
{
[Test]
[Explicit]
public void TestExplicit()
{
Trace.WriteLine("TestExplicit "+DateTime.Now);
Assert.Fail();
}
[Test]
[Ignore]
public void TestIgnore()
{
Trace.WriteLine("TestIgnore " + DateTime.Now);
Assert.Fail();
}
[Test]
public void TestTest()
{
Trace.WriteLine("TestTest " + DateTime.Now);
}
}
}
Build this project, then start the NUnit GUI, create a project for it and add the output of this C# project to the NUnit project. Save the project and exit the NUnit GUI.
Restart the NUnit GUI. The project you've just created should be
reloaded automatically.
At this point look at the treeview. All the test names are black, and
all the bubbles are gray. Right-click each of the three tests and look
at the availability of the Run option. They're all enabled.
Right-click TestExplicit and run it. It works.
Select another test. TestExplicit is now blue.
Right click TestExplicit. Run is greyed out.
Right click the assembly name in the tree and load the fixture. Original
situation restored.
Run TestTest. It runs. Select it again to move the highlight.
TestExplicit is now blue, and its Run option is disabled.
Also note in all these cases that the Run option is never disabled for
TestIgnore.
** Summary changed:
- UI won't run tests marked Explicit
+ UI won't run tests marked Explicit from the context menu
** Description changed:
NUnit 2.5.10, Gui runner:
- A test marked [Explicit] can only be run from the Gui runner if it is
- the first test run. After that, it is disabled.
+ A test marked [Explicit] can only be run from the Gui runner context
+ menu if it is the first test run. After that, it is disabled.
--
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/841894
Title:
UI won't run tests marked Explicit from the context menu
Status in NUnit V2 Test Framework:
Incomplete
Bug description:
NUnit 2.5.10, Gui runner:
A test marked [Explicit] can only be run from the Gui runner context
menu if it is the first test run. After that, it is disabled.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nunitv2/+bug/841894/+subscriptions
References