Skip to content

Commit 21e7e5c

Browse files
remove debug logging statements
1 parent be2dcac commit 21e7e5c

5 files changed

Lines changed: 0 additions & 15 deletions

File tree

GoogleTestAdapter/Core/GoogleTestExecutor.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ public void RunTests(IEnumerable<TestCase> testCasesToRun, ITestFrameworkReporte
4545
ComputeTestRunner(reporter, isBeingDebugged, solutionDirectory);
4646
}
4747

48-
_logger.LogInfo("INFO INFO INFO");
4948
_runner.RunTests(testCasesToRunAsArray, solutionDirectory, null, null, isBeingDebugged, launcher, executor);
5049

5150
if (_settings.ParallelTestExecution)

GoogleTestAdapter/Core/Runners/ParallelTestRunner.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ public ParallelTestRunner(ITestFrameworkReporter reporter, ILogger logger, Setti
3636
public void RunTests(IEnumerable<TestCase> testCasesToRun, string baseDir,
3737
string workingDir, string userParameters, bool isBeingDebugged, IDebuggedProcessLauncher debuggedLauncher, IProcessExecutor executor)
3838
{
39-
_logger.LogInfo("PARALLEL PARALLEL");
40-
_logger.LogInfo(workingDir);
4139
List<Thread> threads;
4240
lock (this)
4341
{

GoogleTestAdapter/Core/Runners/PreparingTestRunner.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ public PreparingTestRunner(string solutionDirectory, ITestFrameworkReporter repo
4949
public void RunTests(IEnumerable<TestCase> testCasesToRun, string baseDir,
5050
string workingDir, string userParameters, bool isBeingDebugged, IDebuggedProcessLauncher debuggedLauncher, IProcessExecutor executor)
5151
{
52-
_logger.LogInfo("PREPARING PREPARING");
53-
_logger.LogInfo(workingDir);
5452
DebugUtils.AssertIsNull(userParameters, nameof(userParameters));
5553
DebugUtils.AssertIsNull(workingDir, nameof(workingDir));
5654

GoogleTestAdapter/Core/Runners/SequentialTestRunner.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ public SequentialTestRunner(string threadName, ITestFrameworkReporter reporter,
4242
public void RunTests(IEnumerable<TestCase> testCasesToRun, string baseDir,
4343
string workingDir, string userParameters, bool isBeingDebugged, IDebuggedProcessLauncher debuggedLauncher, IProcessExecutor executor)
4444
{
45-
_logger.LogInfo("TEST TEST TEST");
46-
_logger.LogInfo(workingDir);
4745
DebugUtils.AssertIsNotNull(userParameters, nameof(userParameters));
4846
DebugUtils.AssertIsNotNull(workingDir, nameof(workingDir));
4947

@@ -52,8 +50,6 @@ public void RunTests(IEnumerable<TestCase> testCasesToRun, string baseDir,
5250
{
5351
string finalParameters = SettingsWrapper.ReplacePlaceholders(userParameters, executable);
5452
string finalWorkingDir = SettingsWrapper.ReplacePlaceholders(workingDir, executable);
55-
_logger.LogInfo("HEY HEY HEY");
56-
_logger.LogInfo(finalWorkingDir);
5753

5854
if (_canceled)
5955
break;
@@ -85,8 +81,6 @@ public void RunTests(IEnumerable<TestCase> testCasesToRun, string baseDir,
8581
if (_settings.TestPropertySettingsContainer.TryGetSettings(key, out settings)
8682
&& (settings.Environment.Count > 0 || Path.GetFullPath(settings.WorkingDirectory) != Path.GetFullPath(finalWorkingDir)))
8783
{
88-
_logger.LogInfo("LOGGING WITH TEST PROPERTY SETTINGS");
89-
_logger.LogInfo(settings.WorkingDirectory);
9084
RunTestsFromExecutable(
9185
executable,
9286
settings.WorkingDirectory,
@@ -106,8 +100,6 @@ public void RunTests(IEnumerable<TestCase> testCasesToRun, string baseDir,
106100

107101
if (testsWithNoTestPropertySettings.Count != 0)
108102
{
109-
_logger.LogInfo("LOGGING WITHOUT TEST PROPERTY SETTINGS");
110-
_logger.LogInfo(finalWorkingDir);
111103
RunTestsFromExecutable(
112104
executable,
113105
finalWorkingDir,

GoogleTestAdapter/Core/TestCases/TestCaseFactory.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ public IList<TestCase> CreateTestCases(Action<TestCase> reportTestCase = null)
4646
var launcher = new ProcessLauncher(_logger, _settings.GetPathExtension(_executable), null);
4747
int processExitCode;
4848
string workingDir = new FileInfo(_executable).DirectoryName;
49-
_logger.LogInfo("CREATE TEST CASES");
50-
_logger.LogInfo(workingDir);
5149

5250
string cmdLine = GoogleTestConstants.ListTestsOption;
5351
if (!string.IsNullOrEmpty(_settings.AdditionalTestDiscoveryParam))

0 commit comments

Comments
 (0)