67 references to ConsoleUtil
RunTests (67)
AssemblyScheduler.cs (6)
74
ConsoleUtil
.WriteLine($"Found {orderedTypeInfos.Values.SelectMany(t => t).SelectMany(t => t.Tests).Count()} tests to run in {orderedTypeInfos.Keys.Count()} assemblies");
81
ConsoleUtil
.Warning($"Could not look up test history - partitioning based on test count instead");
178
ConsoleUtil
.WriteLine($"{unmatchedLocalTests.Count} tests were missing historical data. {unmatchedRemoteTests.Count()} tests were missing in local assemblies. Estimate of total execution time for tests is {totalExpectedRunTime}.");
273
ConsoleUtil
.WriteLine($"Built {workItems.Length} work items");
283
ConsoleUtil
.Warning($"Work item {workItem.PartitionIndex} estimated execution {totalExecutionTime} time exceeds max execution time {s_maxExecutionTime}.");
284
LogFilters(workItem,
ConsoleUtil
.WriteLine);
Options.cs (4)
202
ConsoleUtil
.WriteLine($"Error parsing command line arguments: {e.Message}");
215
ConsoleUtil
.WriteLine($"Did not find artifacts directory at {artifactsPath}");
228
ConsoleUtil
.WriteLine($"Did not find 'dotnet' at {dotnetFilePath}");
234
ConsoleUtil
.WriteLine($"procdumppath was specified without collectdumps hence it will not be used");
Program.cs (24)
45
ConsoleUtil
.WriteLine($"Running '{options.DotnetFilePath} --version'..");
47
ConsoleUtil
.WriteLine(string.Join(Environment.NewLine, dotnetResult.OutputLines));
48
ConsoleUtil
.WriteLine(ConsoleColor.Red, string.Join(Environment.NewLine, dotnetResult.ErrorLines));
54
ConsoleUtil
.WriteLine(ConsoleColor.Yellow, "Dump collection specified but user is not administrator so cannot modify registry");
137
ConsoleUtil
.WriteLine(ConsoleColor.Red, "No assemblies to test");
141
ConsoleUtil
.WriteLine($"Proc dump location: {options.ProcDumpFilePath}");
142
ConsoleUtil
.WriteLine($"Running tests in {workItems.Length} partitions");
149
ConsoleUtil
.WriteLine($"Test execution time: {elapsed}");
157
ConsoleUtil
.WriteLine(ConsoleColor.Red, $"Test failures encountered");
161
ConsoleUtil
.WriteLine($"All tests passed");
204
ConsoleUtil
.WriteLine($"Error writing log file {logFilePath}");
205
ConsoleUtil
.WriteLine(ex.ToString());
228
ConsoleUtil
.Write($"Dumping {name} {targetProcess.Id} to {dumpFilePath} ... ");
240
ConsoleUtil
.WriteLine($"succeeded ({new FileInfo(dumpFilePath).Length} bytes)");
244
ConsoleUtil
.WriteLine($"FAILED with {processOutput.ExitCode}");
245
ConsoleUtil
.WriteLine($"{procDumpExeFilePath} {args}");
246
ConsoleUtil
.WriteLine(string.Join(Environment.NewLine, processOutput.OutputLines));
251
ConsoleUtil
.WriteLine("FAILED");
252
ConsoleUtil
.WriteLine(ex.Message);
260
ConsoleUtil
.WriteLine($"Taking screenshot on timeout at {screenshotPath}");
262
ConsoleUtil
.WriteLine(string.Join(Environment.NewLine, output.OutputLines));
263
ConsoleUtil
.WriteLine(string.Join(Environment.NewLine, output.ErrorLines));
268
ConsoleUtil
.WriteLine("Roslyn Error: test timeout exceeded, dumping remaining processes");
435
ConsoleUtil
.WriteLine($"Deleting '{dumpFile}' because we have exceeded our total dump size of {MaxTotalDumpSizeInMegabytes} megabytes.");
TestHistoryManager.cs (10)
49
ConsoleUtil
.WriteLine($"Missing required options to lookup test history, accessToken={accessToken}, projectUri={projectUri}, phaseName={phaseName}, targetBranchName={targetBranch}, pipelineDefinitionId={pipelineDefinitionIdStr}");
59
ConsoleUtil
.WriteLine($"Getting last successful build for branch {targetBranch}");
65
ConsoleUtil
.WriteLine($"Unable to get the last successful build for definition {pipelineDefinitionId} in {projectUri} and branch {targetBranch}");
74
ConsoleUtil
.WriteLine($"Unable to get a run with name {phaseName} from build {lastSuccessfulBuild.Url}.");
78
ConsoleUtil
.WriteLine($"Looking up test execution data for build {lastSuccessfulBuild.Id} on branch {targetBranch} and stage {phaseName}");
123
ConsoleUtil
.WriteLine($"Retrieved {testInfos.Keys.Count} tests from AzureDevops in {timer.Elapsed}. Total runtime of all tests is {totalTestRuntime}");
132
ConsoleUtil
.WriteLine($"Missing environment variable {envVarName}");
163
ConsoleUtil
.WriteLine($"Caught exception querying ADO for passing build: {ex}");
183
ConsoleUtil
.WriteLine($"Caught exception querying ADO for test runs: {ex}");
198
ConsoleUtil
.WriteLine($"Caught exception querying ADO for test runs: {ex}");
TestRunner.cs (23)
52
ConsoleUtil
.WriteLine($@"BUILD_SOURCEBRANCH environment variable was not set. Using source branch ""{sourceBranch}"" instead");
65
ConsoleUtil
.WriteLine("BUILD_BUILDID environment variable was not set, will not publish test results for a local run.");
79
ConsoleUtil
.WriteLine($@"BUILD_QUEUEDBY environment variable was not set. Using value ""{queuedBy}"" instead");
85
ConsoleUtil
.WriteLine($"SYSTEM_JOBDISPLAYNAME environment variable was not set. Using a blank TestRunNamePrefix for Helix job.");
142
onOutputDataReceived: (e) => { Debug.Assert(e.Data is not null);
ConsoleUtil
.WriteLine(e.Data); },
352
ConsoleUtil
.WriteLine(ConsoleColor.Red, resultsPath);
360
ConsoleUtil
.WriteLine(ConsoleColor.Red, line);
370
ConsoleUtil
.WriteLine(ConsoleColor.Red, $"Error: {ex.Message}");
390
ConsoleUtil
.Write($" {running.Count,2} running, {waiting.Count,2} queued, {completed.Count,2} completed");
393
ConsoleUtil
.Write($", {failures,2} failures");
395
ConsoleUtil
.WriteLine();
423
ConsoleUtil
.WriteLine("================");
435
ConsoleUtil
.WriteLine(color, message);
437
ConsoleUtil
.WriteLine("================");
440
ConsoleUtil
.WriteLine("Extra run diagnostics for logging, did not impact run results");
443
ConsoleUtil
.WriteLine(testResult.Diagnostics!);
452
ConsoleUtil
.WriteLine($"Errors {testResult.DisplayName}");
453
ConsoleUtil
.WriteLine(testResult.ErrorOutput);
456
ConsoleUtil
.WriteLine($"Command: {testResult.CommandLine}");
457
ConsoleUtil
.WriteLine($"xUnit output log: {outputLogPath}");
463
ConsoleUtil
.WriteLine(testResult.ErrorOutput);
467
ConsoleUtil
.WriteLine($"xunit produced no error output but had exit code {testResult.ExitCode}. Writing standard output:");
468
ConsoleUtil
.WriteLine(testResult.StandardOutput ?? "(no standard output)");