From fc4eed8d0abc985c4b5b538ef7ee314e9632914e Mon Sep 17 00:00:00 2001 From: Matt Parker <61717342+MattParkerDev@users.noreply.github.com> Date: Wed, 19 Nov 2025 23:47:36 +1000 Subject: [PATCH] reduce test explorer logging --- .../Features/Testing/TestRunnerService.cs | 8 +++++--- .../Features/TestExplorer/TestExplorerPanel.cs | 1 - 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/SharpIDE.Application/Features/Testing/TestRunnerService.cs b/src/SharpIDE.Application/Features/Testing/TestRunnerService.cs index 460e465..68ae133 100644 --- a/src/SharpIDE.Application/Features/Testing/TestRunnerService.cs +++ b/src/SharpIDE.Application/Features/Testing/TestRunnerService.cs @@ -1,4 +1,5 @@ -using SharpIDE.Application.Features.Analysis; +using Microsoft.Extensions.Logging; +using SharpIDE.Application.Features.Analysis; using SharpIDE.Application.Features.Evaluation; using SharpIDE.Application.Features.SolutionDiscovery.VsPersistence; using SharpIDE.Application.Features.Testing.Client; @@ -6,9 +7,10 @@ using SharpIDE.Application.Features.Testing.Client.Dtos; namespace SharpIDE.Application.Features.Testing; -public class TestRunnerService(RoslynAnalysis roslynAnalysis) +public class TestRunnerService(RoslynAnalysis roslynAnalysis, ILogger logger) { private readonly RoslynAnalysis _roslynAnalysis = roslynAnalysis; + private readonly ILogger _logger = logger; public async Task> DiscoverTests(SharpIdeSolutionModel solutionModel) { @@ -29,7 +31,7 @@ public class TestRunnerService(RoslynAnalysis roslynAnalysis) await client.ExitAsync(); allDiscoveredTestNodes.AddRange(testNodeUpdates.Select(tn => tn.Node)); } - + _logger.LogInformation("Discovered {DiscoveredTestCount} tests", allDiscoveredTestNodes.Count); return allDiscoveredTestNodes; } diff --git a/src/SharpIDE.Godot/Features/TestExplorer/TestExplorerPanel.cs b/src/SharpIDE.Godot/Features/TestExplorer/TestExplorerPanel.cs index b5627d5..f8543d3 100644 --- a/src/SharpIDE.Godot/Features/TestExplorer/TestExplorerPanel.cs +++ b/src/SharpIDE.Godot/Features/TestExplorer/TestExplorerPanel.cs @@ -46,7 +46,6 @@ public partial class TestExplorerPanel : Control await _buildService.MsBuildAsync(solution.FilePath); } var testNodes = await _testRunnerService.DiscoverTests(solution); - testNodes.ForEach(s => GD.Print(s.DisplayName)); var scenes = testNodes.Select(s => { var entry = _testNodeEntryScene.Instantiate();