Skip to content

BenchmarkDotNet should warn if there are no benchmarks #2712

Open
@richardcocks

Description

@richardcocks

I've got a small benchmark that I was about to open a bug report because it appeared to "crash" during Benchmark Validation.

It shows // Validating benchmarks: and then the process exits without any error or warning.

I'm an idiot, and it turns out I forgot to annotate any methods at all with [Benchmark].

A warning that "No benchmarks found" would help idiots like me realise their mistake without thinking that validation is crashing.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions