178 references to FullLog
Microsoft.Build.Engine.UnitTests (150)
BackEnd\BuildManager_Tests.cs (5)
1997Assert.Contains(skippedMessage, _logger.FullLog); 3952Assert.Contains("The target \"Foo\" does not exist in the project", _logger.FullLog, 4415logger.FullLog.ShouldContain("Static graph construction started."); 4416logger.FullLog.ShouldContain("Static graph loaded in"); 4417logger.FullLog.ShouldContain("3 nodes, 2 edges");
BackEnd\MSBuild_Tests.cs (19)
211Assert.Contains(error, logger.FullLog); 235Assert.Contains(error, logger.FullLog); 271Assert.Contains(message, logger.FullLog); // for the missing project 272Assert.DoesNotContain(error, logger.FullLog); 309Assert.Contains(message, logger.FullLog); // for the missing project 310Assert.DoesNotContain(error, logger.FullLog); 358Assert.Contains(message, logger.FullLog); // for the missing project 359Assert.Contains(error2, logger.FullLog); 360Assert.DoesNotContain(error, logger.FullLog); 402Assert.Contains(error, logger.FullLog); 683Console.WriteLine(logger.FullLog); 750Console.WriteLine(logger.FullLog); 797_testOutput.WriteLine(logger.FullLog); 829_testOutput.WriteLine(logger.FullLog); 876_testOutput.WriteLine(logger.FullLog); 1915_testOutput.WriteLine(logger.FullLog); 1936_testOutput.WriteLine(logger.FullLog); 1964_testOutput.WriteLine(logger.FullLog); 1993_testOutput.WriteLine(logger.FullLog);
BackEnd\OnError_Tests.cs (46)
51Assert.True(l.FullLog.IndexOf("CleanUp-was-called") != -1); // "The CleanUp target should have been called." 210Assert.True(l.FullLog.IndexOf("CleanUp-was-called") != -1); // "The CleanUp target should have been called." 211Assert.True(l.FullLog.IndexOf("CleanUp2-was-called") != -1); // "The CleanUp2 target should have been called." 243Assert.True(l.FullLog.IndexOf("CleanUp-was-called") != -1); // "The CleanUp target should have been called." 244Assert.True(l.FullLog.IndexOf("CleanUp2-was-called") != -1); // "The CleanUp2 target should have been called." 276Assert.True(l.FullLog.IndexOf("CleanUp-was-called") != -1); // "The CleanUp target should have been called." 277Assert.True(l.FullLog.IndexOf("CleanUp2-was-called") != -1); // "The CleanUp2 target should have been called." 308Assert.True(l.FullLog.IndexOf("CleanUp-was-called") != -1); // "The CleanUp target should have been called." 309Assert.True(l.FullLog.IndexOf("Error-in-build-step-1") != -1); // "The BuildStep1 target should have been called." 335Assert.True(l.FullLog.IndexOf("CleanUp-was-called") == -1); // "The CleanUp target should not have been called." 363Assert.True(l.FullLog.IndexOf("CleanUp-was-called") != -1); // "The CleanUp target should have been called." 391Assert.True(l.FullLog.IndexOf("CleanUp-was-called") == -1); // "The CleanUp target should not have been called." 423Assert.True(l.FullLog.IndexOf("CleanUp-was-called") != -1); // "The CleanUp target should have been called." 464Assert.True(l.FullLog.IndexOf("CleanUp1-was-called") != -1); // "The CleanUp1 target should have been called." 465Assert.True(l.FullLog.IndexOf("CleanUp2-was-called") != -1); // "The CleanUp2 target should have been called." 466Assert.True(l.FullLog.IndexOf("CleanUp3-was-called") != -1); // "The CleanUp3 target should have been called." 521Assert.True(l.FullLog.IndexOf("CleanUp-was-called") != -1); // "The CleanUp target should have been called." 617Assert.True(l.FullLog.IndexOf("ResGen-was-called") != -1); // "The ResGen target should have been called." 618Assert.True(l.FullLog.IndexOf("Compile-was-called") != -1); // "The Compile target should have been called." 619Assert.True(l.FullLog.IndexOf("GenerateSatellites-was-called") != -1); // "The GenerateSatellites target should have been called." 620Assert.True(l.FullLog.IndexOf("PostBuild-was-called") != -1); // "The PostBuild target should have been called." 639Assert.True(l.FullLog.IndexOf("ResGen-was-called") != -1); // "The ResGen target should have been called." 640Assert.True(l.FullLog.IndexOf("Compile-was-called") != -1); // "The Compile target should have been called." 641Assert.True(l.FullLog.IndexOf("Compile-step-failed") != -1); // "The Compile target should have failed." 642Assert.True(l.FullLog.IndexOf("GenerateSatellites-was-called") == -1); // "The GenerateSatellites target should not have been called." 643Assert.True(l.FullLog.IndexOf("PostBuild-was-called") == -1); // "The PostBuild target should not have been called." 662Assert.True(l.FullLog.IndexOf("ResGen-was-called") != -1); // "The ResGen target should have been called." 663Assert.True(l.FullLog.IndexOf("Compile-was-called") != -1); // "The Compile target should have been called." 664Assert.True(l.FullLog.IndexOf("GenerateSatellites-was-called") != -1); // "The GenerateSatellites target should have been called." 665Assert.True(l.FullLog.IndexOf("GenerateSatellites-step-failed") != -1); // "The GenerateSatellites target should have failed." 666Assert.True(l.FullLog.IndexOf("PostBuild-was-called") == -1); // "The PostBuild target should not have been called." 685Assert.True(l.FullLog.IndexOf("ResGen-was-called") != -1); // "The ResGen target should have been called." 686Assert.True(l.FullLog.IndexOf("Compile-was-called") != -1); // "The Compile target should have been called." 687Assert.True(l.FullLog.IndexOf("Compile-step-failed") != -1); // "The Compile target should have failed." 688Assert.True(l.FullLog.IndexOf("GenerateSatellites-was-called") == -1); // "The GenerateSatellites target should not have been called." 689Assert.True(l.FullLog.IndexOf("PostBuild-was-called") != -1); // "The PostBuild target should have been called." 708Assert.True(l.FullLog.IndexOf("ResGen-was-called") != -1); // "The ResGen target should have been called." 709Assert.True(l.FullLog.IndexOf("Compile-was-called") != -1); // "The Compile target should have been called." 710Assert.True(l.FullLog.IndexOf("Compile-step-failed") != -1); // "The Compile target should have failed." 711Assert.True(l.FullLog.IndexOf("GenerateSatellites-was-called") == -1); // "The GenerateSatellites target should not have been called." 712Assert.True(l.FullLog.IndexOf("PostBuild-was-called") == -1); // "The PostBuild target should not have been called." 731Assert.True(l.FullLog.IndexOf("ResGen-was-called") != -1); // "The ResGen target should have been called." 732Assert.True(l.FullLog.IndexOf("Compile-was-called") != -1); // "The Compile target should have been called." 733Assert.True(l.FullLog.IndexOf("GenerateSatellites-was-called") != -1); // "The GenerateSatellites target should have been called." 734Assert.True(l.FullLog.IndexOf("GenerateSatellites-step-failed") != -1); // "The GenerateSatellites target should have failed." 735Assert.True(l.FullLog.IndexOf("PostBuild-was-called") != -1); // "The PostBuild target should have been called."
BackEnd\TargetBuilder_Tests.cs (1)
234var logText = logger.FullLog.Replace("\r\n", "\n");
BackEnd\TaskHostCallback_Tests.cs (10)
103logger.FullLog.ShouldContain("external task host"); 106logger.FullLog.ShouldContain($"IsRunningMultipleNodes = {expectedResult}"); 141logger.FullLog.ShouldContain("MSB5022"); 207logger.FullLog.ShouldContain("ReleaseCores("); 246logger.FullLog.ShouldContain("external task host"); 247logger.FullLog.ShouldContain("RequestCores(1) ="); 291logger.FullLog.ShouldContain("RequestCores threw NotImplementedException, using fallback"); 294logger.FullLog.ShouldContain("GrantedCores = 4"); 336logger.FullLog.ShouldContain("RequestCores threw NotImplementedException, using fallback"); 337logger.FullLog.ShouldNotContain("ReleaseCores(");
BackEnd\TaskRouter_IntegrationTests.cs (12)
90logger.FullLog.ShouldContain("NonEnlightenedTask executed"); 135logger.FullLog.ShouldContain("TaskWithInterface executed"); 180logger.FullLog.ShouldContain("TaskWithAttribute executed"); 225logger.FullLog.ShouldContain("NonEnlightenedTask executed"); 269logger.FullLog.ShouldContain("TaskWithInterface executed"); 327logger.FullLog.ShouldContain("NonEnlightenedTask executed"); 328logger.FullLog.ShouldContain("TaskWithInterface executed"); 329logger.FullLog.ShouldContain("TaskWithAttribute executed"); 382logger.FullLog.ShouldContain("TaskWithAttribute executed"); 415logger.FullLog.ShouldContain(launchingMessage); 416logger.FullLog.ShouldContain("external task host"); 428logger.FullLog.ShouldNotContain(launchingMessage);
BinaryLogger_Tests.cs (2)
169mockLogFromPlayback.FullLog.ShouldContainWithoutWhitespace(mockLogFromBuild.FullLog);
ChangeWaves_Tests.cs (1)
67log.FullLog.Contains("Hello World!").ShouldBe(isThisWaveEnabled);
Construction\SolutionProjectGenerator_Tests.cs (1)
366Assert.Contains(text, logger.FullLog); // "Log should contain the regular message"
Definition\ToolsVersion_Tests.cs (1)
223Console.WriteLine(mockLogger.FullLog);
Evaluation\Expander_Tests.cs (3)
1348logger.FullLog.ShouldContain("Value is True"); 1364logger.FullLog.ShouldContain("Value is False"); 1380logger.FullLog.ShouldContain("Value is asdf_jkl");
Evaluation\ImportFromMSBuildExtensionsPath_Tests.cs (3)
168Console.WriteLine(logger.FullLog); 209Console.WriteLine(logger.FullLog); 264Console.WriteLine(logger.FullLog);
Evaluation\SdkResultEvaluation_Tests.cs (1)
369_log.WriteLine(_logger.FullLog);
Graph\ResultCacheBasedBuilds_Tests.cs (5)
71_logger.FullLog.ShouldContain("MSB4256:"); 93_logger.FullLog.ShouldContain("Writing build results caches to:"); 94_logger.FullLog.ShouldContain("msbuild-cache"); 113_logger.FullLog.ShouldContain("Using input build results caches: a;b"); 114_logger.FullLog.ShouldContain("Writing build results caches to: c");
Parser_Tests.cs (7)
453Assert.Contains("MSB4130:", ml.FullLog); // "Need to warn for this expression - (a) == 1 and $(b) == 2 or $(c) == 3." 464Assert.Contains("MSB4130:", ml.FullLog); // "Need to warn for this expression - (a) == 1 or $(b) == 2 and $(c) == 3." 475Assert.Contains("MSB4130:", ml.FullLog); // "Need to warn for this expression - ($(a) == 1 or $(b) == 2 and $(c) == 3) or $(d) == 4." 495Assert.DoesNotContain("MSB4130:", ml.FullLog); // "No need to warn for this expression - (a) == 1 and $(b) == 2 and $(c) == 3." 506Assert.DoesNotContain("MSB4130:", ml.FullLog); // "No need to warn for this expression - (a) == 1 or $(b) == 2 or $(c) == 3." 517Assert.DoesNotContain("MSB4130:", ml.FullLog); // "No need to warn for this expression - ($(a) == 1 and $(b) == 2) or $(c) == 3." 528Assert.DoesNotContain("MSB4130:", ml.FullLog); // "No need to warn for this expression - ($(a) == 1 or $(b) == 2) and $(c) == 3."
ProjectCache\ProjectCacheTests.cs (33)
556logger.FullLog.ShouldNotContain($"EntryPoint: {graph.GraphRoots.First().ProjectInstance.FullPath}"); 557logger.FullLog.ShouldContain($"EntryPoint: {graph.GraphRoots.First().ProjectReferences.First().ProjectInstance.FullPath}"); 628logger.FullLog.ShouldContain($"EntryPoint: {projectPath}"); 629logger.FullLog.ShouldContain($"Configuration:{projectName}Debug"); 630logger.FullLog.ShouldContain($"Platform:{projectName}x64"); 633logger.FullLog.ShouldNotContain("TargetFramework:net472"); 730logger.FullLog.ShouldNotContain("BeginBuildAsync"); 731logger.FullLog.ShouldNotContain("GetCacheResultAsync for"); 732logger.FullLog.ShouldNotContain("Querying project cache for project"); 733logger.FullLog.ShouldNotContain("EndBuildAsync"); 805mockLogger.FullLog.ShouldContain($"{AssemblyMockCache}: BeginBuildAsync"); 806Regex.Matches(mockLogger.FullLog, $"{AssemblyMockCache}: GetCacheResultAsync for").Count.ShouldBe(graph.ProjectNodes.Count); 807mockLogger.FullLog.ShouldContain($"{AssemblyMockCache}: EndBuildAsync"); 814mockLogger.FullLog.ShouldContain(string.Format(ResourceUtilities.GetResourceString("ProjectCacheQueryStartedWithDefaultTargets"), node.ProjectInstance.FullPath)); 818mockLogger.FullLog.ShouldContain(string.Format(ResourceUtilities.GetResourceString("ProjectCacheQueryStartedWithTargetNames"), node.ProjectInstance.FullPath, targets)); 843mockLogger.FullLog.ShouldContain($"{AssemblyMockCache}: GetCacheResultAsync for {node.ProjectInstance.FullPath}"); 950logger.FullLog.ShouldContain($"Loading the following project cache plugin: {AssemblyMockCache}"); 1032logger.FullLog.ShouldContain("Reference file [Invalid file] does not exist"); 1222logger.FullLog.ShouldNotContain($"{AssemblyMockCache}: GetCacheResultAsync for"); 1223logger.FullLog.ShouldNotContain($"{AssemblyMockCache}: EndBuildAsync"); 1227StringShouldContainSubstring(logger.FullLog, $"{AssemblyMockCache}: GetCacheResultAsync for", expectedOccurrences: 1); 1228StringShouldContainSubstring(logger.FullLog, $"{AssemblyMockCache}: EndBuildAsync", expectedOccurrences: 1); 1231logger.FullLog.ShouldNotContain("Cache plugin exception from"); 1235logger.FullLog.ShouldContain("Cache plugin logged error from"); 1281logger.FullLog.ShouldContain("Loading the following project cache plugin:"); 1301logger.FullLog.ShouldNotContain("Cache plugin exception from"); 1305logger.FullLog.ShouldContain("Cache plugin logged error from"); 1326logger.FullLog.ShouldNotContain($"{AssemblyMockCache}: GetCacheResultAsync for"); 1327logger.FullLog.ShouldNotContain($"{AssemblyMockCache}: EndBuildAsync"); 1336StringShouldContainSubstring(logger.FullLog, $"{AssemblyMockCache}: GetCacheResultAsync for", expectedQueryOccurrences); 1338StringShouldContainSubstring(logger.FullLog, $"{AssemblyMockCache}: EndBuildAsync", expectedOccurrences: 1); 1369StringShouldContainSubstring(buildSession.Logger.FullLog, $"{nameof(AssemblyMockCache)}: EndBuildAsync", expectedOccurrences: 1); 1519StringShouldContainSubstring(logger.FullLog, $"{AssemblyMockCache}: GetCacheResultAsync for", graph.ProjectNodes.Count);
Microsoft.Build.Tasks.UnitTests (16)
MSBuild_Tests.cs (14)
193Assert.Contains("MSB3202", logger.FullLog); // project file not found 216Assert.Contains("MSB3202", logger.FullLog); // project file not found 250Assert.Contains("this_project_does_not_exist.csproj", logger.FullLog); // for the missing project 251Assert.DoesNotContain("MSB3202", logger.FullLog); // project file not found error 286Assert.Contains("this_project_does_not_exist.csproj", logger.FullLog); // for the missing project 287Assert.DoesNotContain("MSB3202", logger.FullLog); // project file not found error 334Assert.Contains(message, logger.FullLog); // for the missing project 335Assert.Contains(error2, logger.FullLog); 336Assert.DoesNotContain(error, logger.FullLog); 377Assert.Contains("MSB3204", logger.FullLog); // upgrade to vcxproj needed 1419logger.FullLog.ShouldContain("t2 executing"); 1424logger.FullLog.ShouldContain("Target \"t_nonexistent\" skipped"); 1448logger.FullLog.ShouldContain("Target \"t_nonexistent\" skipped"); 1451logger.FullLog.ShouldContain("MSB4057");
MSBuildInternalMessage_Tests.cs (1)
153logger.FullLog.Contains(expectedBuildMessage);
RegressionTests.cs (1)
80Assert.True(result, "Output:" + Environment.NewLine + logger.FullLog);
Microsoft.Build.UnitTests.Shared (8)
EngineTestEnvironment.cs (1)
171return (logger, () => logger.FullLog);
MockLogger.cs (7)
441Console.Write(FullLog); 471var reader = new StringReader(FullLog); 508_testOutputHelper.WriteLine(FullLog); 517$"Log was expected to contain '{contains[index]}', but did not. Full log:\n=======\n{FullLog}\n======="); 530if (FullLog.Contains(contains)) 534_testOutputHelper.WriteLine(FullLog); 558var matches = Regex.Matches(FullLog, regexSearch ? message : Regex.Escape(message));
Microsoft.Build.Utilities.UnitTests (4)
MuxLogger_Tests.cs (4)
129mockLogger.FullLog.Replace(Environment.NewLine, "").ShouldBe(mockLogger2.FullLog.Replace(Environment.NewLine, "")); 288mockLogger2.FullLog.ShouldBe(mockLogger1.FullLog);