nunit / nunit

NUnit Framework
https://nunit.org/
MIT License
2.5k stars 727 forks source link

Exact match on class and method doesn't run explicit tests #1684

Open jcansdale opened 8 years ago

jcansdale commented 8 years ago

When a test is targeted by its class and method name, NUnit doesn't recognize the test as being explicitly targeted.

Take the following test:

public class Fixture
{
    [Explicit, Test]
    public void Test()
    {
    }
}

If you attempt to execute the [Explicit] test like this:

nunit3-console.exe tests.dll --where "class == 'Fixture' && method == 'Test'"

You get the following result:

Test Run Summary
  Overall result: Passed
  Test Count: 1, Passed: 0, Failed: 0, Inconclusive: 0, Skipped: 1
    Skipped Tests - Ignored: 0, Explicit: 1, Other: 0
  Start time: 2016-07-18 22:01:05Z
    End time: 2016-07-18 22:01:06Z
    Duration: 0.194 seconds

This was run with NUnit v3.4.1.

jcansdale commented 8 years ago

Remember to revert nunit/nunit3-tdnet-adapter@50fb9bce7dca58af908624671dc2cb3599bed1b7 if this is resolved.

CharliePoole commented 7 years ago

I can confirm this behavior.