test: Use dotnet test for running unit tests #19172
Build #5.7.0-PullRequest-19172-151993-19172.86 had test failures
Details
- Failed: 768 (0.38%)
- Passed: 189,360 (94.44%)
- Other: 10,371 (5.17%)
- Total: 200,499
Annotations
Check failure on line 11549 in Build log
azure-pipelines / Uno.UI - CI
Build log #L11549
The Operation will be canceled. The next steps may not contain expected logs.
Check failure on line 11630 in Build log
azure-pipelines / Uno.UI - CI
Build log #L11630
The operation was canceled.
Check failure on line 1 in When_Many_Targets_Collected()
azure-pipelines / Uno.UI - CI
When_Many_Targets_Collected()
Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException: Assert.AreEqual failed. Expected:<5150>. Actual:<5151>.
at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.ThrowAssertFailed(String assertionName, String message)
at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreEqual[Int32](Int32 expected, Int32 actual, IEqualityComparer`1 comparer, String message, Object[] parameters)
at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreEqual[Int32](Int32 expected, Int32 actual)
at Uno.UI.RuntimeTests.Tests.Windows_UI.Given_WeakEventHelper.When_Many_Targets_Collected()
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Check failure on line 1 in When_MaxVisiblePips_GreaterThan_NumberOfPages_Horizontal()
azure-pipelines / Uno.UI - CI
When_MaxVisiblePips_GreaterThan_NumberOfPages_Horizontal()
Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException: Assert.Fail failed. ImageAssert.HasColorAt @ line 45
====================
Color at (55,10) is not expected
expected: 72000004 #72000004
actual : B1000000 #B1000000
tolerance : 0
difference: 63
screenshot size: 60x20
at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.ThrowAssertFailed(String assertionName, String message)
at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.Fail(String message, Object[] parameters)
at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.Fail(String message)
at Uno.UI.RuntimeTests.Helpers.ImageAssert.HasColorAtImpl(RawBitmap screenshot, Int32 x, Int32 y, Color expectedColor, Byte tolerance, Int32 line)
at Uno.UI.RuntimeTests.Helpers.ImageAssert.HasColorAt(RawBitmap screenshot, Single x, Single y, Color expectedColor, Byte tolerance, Int32 line)
at Uno.UI.RuntimeTests.Tests.Microsoft_UI_Xaml_Controls.Given_PipsPager.When_MaxVisiblePips_GreaterThan_NumberOfPages_Horizontal()
at Uno.UI.Samples.Tests.UnitTestsControl.<>c__DisplayClass63_1.<<ExecuteTestsForInstance>g__InvokeTestMethod|5>d.MoveNext()
Check failure on line 1 in ValidateOverflowScrollViewerDoesNotScrollWithArrowKeys()
azure-pipelines / Uno.UI - CI
ValidateOverflowScrollViewerDoesNotScrollWithArrowKeys()
Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException: Expected object to be [865, -678], but found [865, 53].
at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message)
at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args)
at FluentAssertions.Primitives.ObjectAssertions.Be(Object expected, String because, Object[] becauseArgs)
at Private.Infrastructure.TestServices.VERIFY_ARE_EQUAL[Point](Point actual, Point expected, String message)
at Microsoft.UI.Xaml.Tests.Enterprise.BaseDxamlTestClass.VERIFY_ARE_EQUAL[Point](Point actual, Point expected, String message)
at Windows.UI.Tests.Enterprise.CommandBarIntegrationTests.<>c__DisplayClass25_0.<ValidateOverflowScrollViewerDoesNotScrollWithArrowKeys>b__5()
at Private.Infrastructure.TestServices.<>c__DisplayClass1_0.<RunOnUIThread>b__0()
at Private.Infrastructure.UnitTestDispatcherCompat.<>c__DisplayClass18_0.<RunAsync>b__0()
--- End of stack trace from previous location ---
at Private.Infrastructure.TestServices.RunOnUIThread(Action action)
at Windows.UI.Tests.Enterprise.CommandBarIntegrationTests.<>c__DisplayClass25_0.<<ValidateOverflowScrollViewerDoesNotScrollWithArrowKeys>b__4>d.MoveNext()
--- End of stack trace from previous location ---
at Uno.UI.RuntimeTests.Helpers.TestHelper.RetryAssert(Func`1 assertion, Int32 count)
at Uno.UI.RuntimeTests.Helpers.TestHelper.RetryAssert(Func`1 assertion, Int32 count)
at Windows.UI.Tests.Enterprise.CommandBarIntegrationTests.ValidateOverflowScrollViewerDoesNotScrollWithArrowKeys()
at Uno.UI.Samples.Tests.UnitTestsControl.<>c__DisplayClass63_1.<<ExecuteTestsForInstance>g__InvokeTestMethod|5>d.MoveNext()
azure-pipelines / Uno.UI - CI
SamplesApp.UITests.Snap.Generated_Uno_UI_Samples_011.ListView_ListViewChangeHeight
System.Exception : Error while performing WaitFor([unknown], "Timed out waiting...", 00:00:30, 00:00:00.0500000, null)
----> System.TimeoutException : Timed out waiting...
TearDown : System.Exception : Error while performing Screenshot("ListView_ListViewChangeHeight_ListView_ListViewChangeHeight_-_Tear_down_on_error")
----> System.Net.Http.HttpRequestException : Connection refused (127.0.0.1:37265)
----> System.Net.Sockets.SocketException : Connection refused
Raw output
at Xamarin.UITest.Utils.ErrorReporting.With(Action func, Object[] args, String memberName)
at SamplesApp.UITests.SampleControlUITestBase.Run(String metadataName, Boolean waitForSampleControl, Boolean skipInitialScreenshot, Int32 sampleLoadTimeout)
at SamplesApp.UITests.Snap.Generated_Uno_UI_Samples_011.ListView_ListViewChangeHeight() in /Users/runner/work/1/s/src/SamplesApp/SamplesApp.UITests/obj/Release/net8.0/Uno.Samples.UITest.Generator/Uno.Samples.UITest.Generator.SnapShotTestGenerator/Generated_Uno_UI_Samples_011.cs:line 513
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
--TimeoutException
at Xamarin.UITest.Utils.ErrorReporting.With(Action func, Object[] args, String memberName)
--TearDown
at Xamarin.UITest.Utils.ErrorReporting.With[T](Func`1 func, Object[] args, String memberName)
at SamplesApp.UITests.SampleControlUITestBase.TakeScreenshot(String stepName, ScreenshotOptions options) in /Users/runner/work/1/s/src/SamplesApp/SamplesApp.UITests/SampleControlUITestBase.cs:line 307
at SamplesApp.UITests.SampleControlUITestBase.TakeScreenshot(String stepName, Nullable`1 ignoreInSnapshotCompare) in /Users/runner/work/1/s/src/SamplesApp/SamplesApp.UITests/SampleControlUITestBase.cs:line 288
at SamplesApp.UITests.SampleControlUITestBase.AfterEachTest() in /Users/runner/work/1/s/src/SamplesApp/SamplesApp.UITests/SampleControlUITestBase.cs:line 234
at InvokeStub_SampleControlUITestBase.AfterEachTest(Object, Object, IntPtr*)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
--HttpRequestException
at Xamarin.UITest.Shared.Http.HttpClient.GetBinaryFile(String endpoint, String fileName, String queryString, ExceptionPolicy exceptionPolicy)
at Xamarin.UITest.Shared.Screenshots.HttpScreenshotTaker.Screenshot(String title)
at Xamarin.UITest.iOS.iOSApp.<>c__DisplayClass62_0.<Screenshot>b__0()
at Xamarin.UITest.Utils.ErrorReporting.With[T](Func`1 func, Object[] args, String memberName)
--SocketException
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)