Skip to content

Parameterized fixture with Explicit attribute can not be run when selected by name #2477

@CharliePoole

Description

@CharliePoole

Given code like this...

    [TestFixtureSource(nameof(GetParallelSuites)), Explicit]
    public class ParallelExecutionTests
    {
        ...
    }

Running the console with a filter --where test==Namespace.Of.ParallelExecutionTests causes no tests to run. I think that's because we are running the suite that includes all the instances of the fixture but the attribute is applied to each fixture.

AFAIR this works correctly in the case of methods, so we should look at how we do it there.

Workaround for the above, BTW, is to use --where test=~Namespace.Of.ParallelExecutionTests.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions