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();