Skip to content

Commit 834417a

Browse files
Improve logging in ScottPlotExporterTests
1 parent f8082a2 commit 834417a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/BenchmarkDotNet.Exporters.Plotting.Tests/ScottPlotExporterTests.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
using System.IO;
88
using System.Linq;
99
using Xunit;
10+
using Xunit.Abstractions;
1011

1112
namespace BenchmarkDotNet.Exporters.Plotting.Tests
1213
{
13-
public class ScottPlotExporterTests
14+
public class ScottPlotExporterTests(ITestOutputHelper output)
1415
{
1516
public static TheoryData<Type> GetGroupBenchmarkTypes()
1617
{
@@ -32,6 +33,10 @@ public void BarPlots(Type benchmarkType)
3233
var filePaths = exporter.ExportToFiles(summary, logger).ToList();
3334
Assert.NotEmpty(filePaths);
3435
Assert.All(filePaths, f => File.Exists(f));
36+
37+
foreach (string filePath in filePaths)
38+
logger.WriteLine($"* {filePath}");
39+
output.WriteLine(logger.GetLog());
3540
}
3641

3742
[SuppressMessage("ReSharper", "InconsistentNaming")]
@@ -233,6 +238,7 @@ public class Escape_ParamsAndArguments
233238
[Arguments('\t')]
234239
[Arguments('\n')]
235240
[Benchmark] public void Foo(char charArg) { }
241+
236242
[Benchmark] public void Bar() { }
237243
}
238244
}

0 commit comments

Comments
 (0)