Steps to reproduce
- Follow https://benchmarkdotnet.org/articles/features/vstest.html (console project +
TestAdapter package + Test.Sdk)
- Define 2 benchmarks with different
[BenchmarkCategory("MyTest1")] and [BenchmarkCategory("MyTest2")] attributes
- Run
dotnet test -c Release --filter "Category=MyTest1"
Expected: 1 benchmark executed (category attribute is being added as a trait )
Actual: both benchmarks executed
Also [unrelated] - are these benchmarks supposed to show up in Test Explorer in VS? I'd assume they would, since dotnet test picks them up
0.14.0 version of TestAdapter is used
Steps to reproduce
TestAdapterpackage +Test.Sdk)[BenchmarkCategory("MyTest1")]and[BenchmarkCategory("MyTest2")]attributesdotnet test -c Release --filter "Category=MyTest1"Expected: 1 benchmark executed (category attribute is being added as a trait )
Actual: both benchmarks executed
Also [unrelated] - are these benchmarks supposed to show up in Test Explorer in VS? I'd assume they would, since
dotnet testpicks them up0.14.0 version of TestAdapter is used