BenchmarkDotNet icon indicating copy to clipboard operation
BenchmarkDotNet copied to clipboard

Log when no benchmarks were found

Open SupinePandora43 opened this issue 3 years ago • 3 comments

Right now BenchmarkDotNet produces an empty artifacts with no information what happened.

SupinePandora43 avatar Apr 05 '22 10:04 SupinePandora43

I thought that we have already added handling for such cases. Could you please provide sample repro with an output?

adamsitnik avatar Apr 05 '22 12:04 adamsitnik

I thought that we have already added handling for such cases. Could you please provide sample repro with an output?

public class Program {
    public static void Main(){
        BenchmarkRunner.Run<MyB>();
    }
}

public class MyB {
    public IEnumerable<string> TestArguments(){
        yield return "";
        yield return new string('i', 8192);
    }

    [ArgumentSource(nameof(TestArguments))]
    public void Bench1(string str){ }
}

SupinePandora43 avatar Apr 06 '22 03:04 SupinePandora43

PR already exists: #1911

YegorStepanov avatar Apr 11 '22 11:04 YegorStepanov