Skip to content

Merge branch 'main' into jankratochvilcz/unit-tests-skill

9b324be
Select commit
Loading
Failed to load commit list.
Merged

Unit testing skill #13574

Merge branch 'main' into jankratochvilcz/unit-tests-skill
9b324be
Select commit
Loading
Failed to load commit list.
Azure Pipelines / msbuild-pr succeeded Apr 23, 2026 in 56m 39s

Build #20260421.42 had test failures

Details

Tests

  • Failed: 6 (0.00%)
  • Passed: 125,504 (98.09%)
  • Other: 2,433 (1.90%)
  • Total: 127,943

Annotations

Check failure on line 1 in Microsoft.Build.UnitTests.ToolTask_Tests.ToolTaskCanChangeCanonicalErrorFormat

See this annotation in the file changed.

@azure-pipelines azure-pipelines / msbuild-pr

Microsoft.Build.UnitTests.ToolTask_Tests.ToolTaskCanChangeCanonicalErrorFormat

Assert.Contains() Failure: Sub-string not found
String:    "C:\\Windows\\system32\\cmd.exe /C type "C:\\Users\\clou"···
Not found: "CS0168"
Raw output
   at Microsoft.Build.UnitTests.MockEngine3.AssertLogContains(String contains) in D:\a\_work\1\s\src\Utilities.UnitTests\MockEngine.cs:line 98
   at Microsoft.Build.UnitTests.ToolTask_Tests.ToolTaskCanChangeCanonicalErrorFormat() in D:\a\_work\1\s\src\Utilities.UnitTests\ToolTask_Tests.cs:line 594

Check failure on line 1 in Microsoft.Build.UnitTests.ToolTask_Tests.ToolTaskThatTimeoutAndRetry(repeats: 3, timeoutOnFirstExecution: True)

See this annotation in the file changed.

@azure-pipelines azure-pipelines / msbuild-pr

Microsoft.Build.UnitTests.ToolTask_Tests.ToolTaskThatTimeoutAndRetry(repeats: 3, timeoutOnFirstExecution: True)

Shouldly.ShouldAssertException : task.ExitCode
    should not be
0
    but was
Raw output
   at Microsoft.Build.UnitTests.ToolTask_Tests.ToolTaskThatTimeoutAndRetry(Int32 repeats, Boolean timeoutOnFirstExecution) in D:\a\_work\1\s\src\Utilities.UnitTests\ToolTask_Tests.cs:line 1051

Check failure on line 1 in Microsoft.Build.UnitTests.ToolTask_Tests.HandleExecutionErrorsWhenToolLogsError

See this annotation in the file changed.

@azure-pipelines azure-pipelines / msbuild-pr

Microsoft.Build.UnitTests.ToolTask_Tests.HandleExecutionErrorsWhenToolLogsError

Shouldly.ShouldAssertException : t.Execute()
    should be
False
    but was
True
Raw output
   at Microsoft.Build.UnitTests.ToolTask_Tests.HandleExecutionErrorsWhenToolLogsError() in D:\a\_work\1\s\src\Utilities.UnitTests\ToolTask_Tests.cs:line 220

Check failure on line 1 in Microsoft.Build.UnitTests.XMakeAppTests.LoggerThrowsTargetInvocationException(targetInvocation: "TargetInvocationException", loggerTemplate: "-logger:,", expectedLoggerName: "FaultyLogger.dll")

See this annotation in the file changed.

@azure-pipelines azure-pipelines / msbuild-pr

Microsoft.Build.UnitTests.XMakeAppTests.LoggerThrowsTargetInvocationException(targetInvocation: "TargetInvocationException", loggerTemplate: "-logger:,", expectedLoggerName: "FaultyLogger.dll")

System.TimeoutException : Test failed due to timeout: process 9856 is active for more than 30 sec.
Raw output
   at Microsoft.Build.UnitTests.Shared.RunnerUtilities.RunProcessAndGetOutput(String process, String parameters, Boolean& successfulExit, Boolean shellExecute, ITestOutputHelper outputHelper, Boolean attachProcessId, Int32 timeoutMilliseconds, Dictionary`2 environmentVariables) in /_/src/UnitTests.Shared/RunnerUtilities.cs:line 184
   at Microsoft.Build.UnitTests.Shared.RunnerUtilities.ExecBootstrapedMSBuild(String msbuildParameters, Boolean& successfulExit, Boolean shellExecute, ITestOutputHelper outputHelper, Boolean attachProcessId, Int32 timeoutMilliseconds) in /_/src/UnitTests.Shared/RunnerUtilities.cs:line 78
   at Microsoft.Build.UnitTests.XMakeAppTests.LoggerThrowsTargetInvocationException(String targetInvocation, String loggerTemplate, String expectedLoggerName) in D:\a\_work\1\s\src\MSBuild.UnitTests\XMake_Tests.cs:line 2695
   at InvokeStub_XMakeAppTests.LoggerThrowsTargetInvocationException(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)