Skip to content

Option --list-tests should take into account --filter option #8643

@evil-shrike

Description

@evil-shrike

I'm trying to execute one particular test so I specify a filter, but dotnet test executes several tests. So I need to understand what tests my filter captures. I would expect that --list-tests with --filter tells me. But it doesn't. --list-tests always shows all tests ignoring --filter option which is a pity.

Steps to reproduce

dotnet test Tests.csproj --list-tests --filter FullyQualifiedName~MyClass.MyMethod

lists only tests satisfying the filter

Expected behavior

lists only tests satisfying the filter

Actual behavior

lists all tests in assembly

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions