How to exclude benchmarks of the certain category in the BDN CLI?

22 Views Asked by At

I have 10 benchmark classes in my project. A few are marked with the "Long" BenchmarkCategory. In the CI, I want to dry run all but long benchmarks. How to do this using Benchmark.NET Command Line Interface?

In the docs, I see:

  • --anyCategories - runs all benchmarks that belong to any of the provided categories
  • --allCategories - runs all benchmarks that belong to all provided categories

But I just want to mark a few benchmarks as [BenchmarkCategory("Long")] and run everything else by default. I feel I am missing something.

0

There are 0 best solutions below