Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update test project to use MSTest #3694

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Update test project to use MSTest

a2972a0
Select commit
Loading
Failed to load commit list.
Draft

Update test project to use MSTest #3694

Update test project to use MSTest
a2972a0
Select commit
Loading
Failed to load commit list.
Azure Pipelines / microsoft.testfx failed Aug 26, 2024 in 33m 48s

Build #20240826.14 had test failures

Details

Tests

  • Failed: 1 (0.00%)
  • Passed: 20,897 (100.00%)
  • Other: 0 (0.00%)
  • Total: 20,898
Code coverage

  • 86478 of 138160 blocks covered (62.59%)
  • 60224 of 96615 lines covered (62.33%)

Annotations

Check failure on line 0 in TestingPlatform

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.testfx

TestingPlatform#L0

TestingPlatform(0,0): error : (NETCORE_ENGINEERING_TELEMETRY=Build) Tests failed: /mnt/vss/_work/1/s/artifacts/log/Release/MSTest.Acceptance.IntegrationTests_net8.0_x64.log [net8.0|x64]

Check failure on line 1 in MSTest.Acceptance.IntegrationTests.MSTest.Acceptance.IntegrationTests.NativeAotTests.NativeAotTests_WillRunWithExitCodeZero

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.testfx

MSTest.Acceptance.IntegrationTests.MSTest.Acceptance.IntegrationTests.NativeAotTests.NativeAotTests_WillRunWithExitCodeZero

Expression 'dotnetMuxerResult.StandardOutput.Contains(value, StringComparison.Ordinal)' failed for member 'NativeAotTests_WillRunWithExitCodeZero' at line 116 of file '/_/test/IntegrationTests/MSTest.Acceptance.IntegrationTests/NativeAotTests.cs'.
Output of the dotnet muxer is:
Args: publish -m:1 -nodeReuse:false /mnt/vss/_work/1/s/artifacts/tmp/Release/testsuite/W5bWU/NativeAotTests -r linux-x64 /warnaserror -p:SuppressNETCoreSdkPreviewMessage=true
ExitCode: 0
StandardOutput:   Determining projects to restore...
  Restored /mnt/vss/_work/1/s/artifacts/tmp/Release/testsuite/W5bWU/NativeAotTests/NativeAotTests.csproj (in 910 ms).
  NativeAotTests -> /mnt/vss/_work/1/s/artifacts/tmp/Release/testsuite/W5bWU/NativeAotTests/bin/Release/net8.0/linux-x64/NativeAotTests.dll
  NativeAotTests -> /mnt/vss/_work/1/s/artifacts/tmp/Release/testsuite/W5bWU/NativeAotTests/bin/Release/net8.0/linux-x64/publish/
StandardError: 

Raw output
   at Microsoft.Testing.Internal.Framework.Assert.That(Boolean condition, String userMessage, String callerArgumentExpression, String callerMemberName, String callerFilePath, Int32 callerLineNumber) in /_/src/Microsoft.Testing.Internal.Framework/Assertions/Assert.cs:line 273
   at Microsoft.Testing.Platform.Acceptance.IntegrationTests.Helpers.AcceptanceAssert.AssertOutputContains(DotnetMuxerResult dotnetMuxerResult, String value, String callerMemberName, String callerFilePath, Int32 callerLineNumber) in /_/test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/Helpers/AcceptanceAssert.cs:line 101
   at MSTest.Acceptance.IntegrationTests.NativeAotTests.<>c__DisplayClass3_0.<<NativeAotTests_WillRunWithExitCodeZero>b__0>d.MoveNext() in /_/test/IntegrationTests/MSTest.Acceptance.IntegrationTests/NativeAotTests.cs:line 116
--- End of stack trace from previous location ---
   at Polly.AsyncPolicy.<>c__DisplayClass40_0.<<ImplementationAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at Polly.Retry.AsyncRetryEngine.ImplementationAsync[TResult](Func`3 action, Context context, CancellationToken cancellationToken, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Func`5 onRetryAsync, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider, Boolean continueOnCapturedContext)
   at Polly.AsyncPolicy.ExecuteAsync(Func`3 action, Context context, CancellationToken cancellationToken, Boolean continueOnCapturedContext)
   at Microsoft.Testing.TestInfrastructure.RetryHelper.RetryAsync(Func`1 action, UInt32 times, TimeSpan every, Func`2 predicate) in /_/test/Utilities/Microsoft.Testing.TestInfrastructure/RetryHelper.cs:line 10
   at MSTest.Acceptance.IntegrationTests.NativeAotTests.NativeAotTests_WillRunWithExitCodeZero() in /_/test/IntegrationTests/MSTest.Acceptance.IntegrationTests/NativeAotTests.cs:line 105
   at MSTest.Acceptance.IntegrationTests.MSTest_Acceptance_IntegrationTests_NativeAotTests.<>c.<<BuildAsync>b__3_0>d.MoveNext() in /_/artifacts/obj/MSTest.Acceptance.IntegrationTests/Release/net8.0/Microsoft.Testing.Internal.Framework.SourceGeneration/Microsoft.Testing.Internal.Framework.SourceGeneration.TestNodesGenerator/MSTest.Acceptance.IntegrationTests.NativeAotTests.g.cs:line 63