Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b774185

Browse files
committed
better error message for a failure to run benchmarks
1 parent c5b4e88 commit b774185

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/perf_tests/BenchmarkTests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ public void SetUp()
2121
Environment.CurrentDirectory = Path.Combine(DeploymentRoot, "new");
2222
this.summary = BenchmarkRunner.Run<PythonCallingNetBenchmark>();
2323
Assert.IsNotEmpty(this.summary.Reports);
24-
Assert.IsTrue(this.summary.Reports.All(r => r.Success));
24+
Assert.IsTrue(
25+
condition: this.summary.Reports.All(r => r.Success),
26+
message: "BenchmarkDotNet failed to execute or collect results of performance tests. See logs above.");
2527
}
2628

2729
[Test]

0 commit comments

Comments
 (0)