Skip to content

[Feature Request] Support filtering feature on BenchmarkDotNet.TestAdapter #2767

Closed as duplicate of#2662
@filzrev

Description

@filzrev

When running benchmark with dotnet test with --filter arguments.
TestAdapter ignore --filter parameter and returns all available benchmarks

How to reproduce issue
Run following command and confirms all benchmarks are listed.

dotnet test BenchmarkDotNet.sln -c Release --list-tests -tl:off --filter DummyFilter

Background
I want to run specific tests only on GitHub Actions with workflow_dispatch trigger with custom inputs (filter text)
to reduce test CI time.

But current TestAdapter behavior blocks targeting entire solution as test target.
It need to specify individual project path to exclude project that using TestAdapter.

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