Skip to content

Can't filter by traits on ITheoryDataRow #426

@justindbaur

Description

@justindbaur

I had reported xunit/xunit#3030 before, on later versions I no longer get a Catastrophic failure but a trait filter with traits that come from ITheoryDataRow still don't appear to work.

Minimal repo: https://github.com/justindbaur/xunit-v3-problem

I expect dotnet test --filter "MyTrait=One" to run just the theory data row with 1, 2. But instead it finds no tests with the specified filter.

[
    new TheoryDataRow(1, 2)
        .WithTrait("MyTrait", "One"),
    new TheoryDataRow(2, 1)
        .WithTrait("MyTrait", "Two"),
]

I'm using:

xunit.v3: 0.6.0-pre.7
xunit.runner.visualstudio: 3.0.0-pre.49

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions