dotnet/BenchmarkDotNet
Vedi su GitHubAbility to configure benchmark class name in outputs
Open
#1447 aperta il 2 mag 2020
Hacktoberfesthelp wantedup-for-grabs
Metriche repository
- Star
- (11.415 star)
- Metriche merge PR
- (Merge medio 5g 9h) (20 PR mergiate in 30 g)
Descrizione
An individual benchmark method's name can be overridden for output purposes via the Description property on BenchmarkAttribute (see #1243 for a related issue on this). However, there doesn't seem to be a way to do the same for the entire class.
My use case: we have a superclass of benchmarks being extended for different databases, so an abstract OpenConnectionBenchmarks class gets extended by SqliteOpenConnectionBenchmarks. However, in the outputs (CSV going into a database) it's desirable to have OpenConnectionBenchmarks, as the database is tracked elsewhere.