Upgrade Unity used to run tests on CI #2
❌️ test result (2019.4.40f1) - 15/18, skipped: 2, failed: 1 - Failed in 0.525s
✅ editmode-results.xml - 0/0 - Passed in 0.004s
❌️ playmode-results.xml - 15/18, skipped: 2, failed: 1 - Failed in 0.521s
Details
✅ editmode-results.xml - 0/0 - Passed in 0.004s
❌️ playmode-results.xml - 15/18, skipped: 2, failed: 1 - Failed in 0.521s
-
⚠️ TestHelper.Attributes.FocusGameViewAttributeTest - 0/1, skipped: 1 - Passed in 0.000s⚠️ Attach_GameViewHasFocus - Skipped
-
❌️ TestHelper.Attributes.GameViewResolutionAttributeTest - 0/1, failed: 1 - Failed in 0.063s
-
❌️ Attach_SetScreenSize - Failed in 0.063s
Expected: 1920
But was: 640SetCustomResolution method not found. [Code Coverage] Code Coverage results for visited sequence points were saved in CodeCoverage/UnityProject~-opencov/PlayMode/TestCoverageResults_0001.xml at TestHelper.Attributes.GameViewResolutionAttributeTest+<Attach_SetScreenSize>d__2.MoveNext () [0x00071] in Tests/Runtime/Attributes/GameViewResolutionAttributeTest.cs:24 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <eae584ce26bc40229c1b1aa476bfa589>:0 at UnityEngine.TestTools.TestRunner.TestTaskWrapper+<Execute>d__2.MoveNext () [0x00074] in UnityProject~/Library/PackageCache/com.unity.test-framework@1.3.5/UnityEngine.TestRunner/TestRunner/TestTaskWrapper.cs:31 at UnityEngine.TestTools.TestEnumerator+<Execute>d__7.MoveNext () [0x0004e] in UnityProject~/Library/PackageCache/com.unity.test-framework@1.3.5/UnityEngine.TestRunner/NUnitExtensions/Attributes/TestEnumerator.cs:44
-
-
⚠️ TestHelper.Attributes.IgnoreBatchModeAttributeTest - 0/1, skipped: 1 - Passed in 0.000s⚠️ AttachToMethod_SkipOnBatchMode - Skipped
-
✅ TestHelper.Attributes.IgnoreWindowModeAttributeTest - 1/1 - Passed in 0.003s
- ✅ AttachToMethod_SkipOnWindowMode - Passed in 0.003s
-
✅ TestHelper.Constraints.DestroyedConstraintTest - 6/6 - Passed in 0.014s
- ✅ IsDestroyed_DestroyedGameObject_Success - Passed in 0.005s
- ✅ IsDestroyed_NotDestroyedGameObject_Failure - Passed in 0.002s
- ✅ IsDestroyed_NotGameObject_Failure - Passed in 0.001s
- ✅ IsDestroyed_Null_Failure - Passed in 0.001s
- ✅ IsNotDestroyed_DestroyedGameObject_Failure - Passed in 0.004s
- ✅ IsNotDestroyed_NotDestroyedGameObject_Success - Passed in 0.001s
-
✅ TestHelper.Random.RandomExtensionsTest - 3/3 - Passed in 0.020s
- ✅ NextNormalizedVector2_InRange - Passed in 0.009s
- ✅ NextNormalizedVector3_InRange - Passed in 0.005s
- ✅ NextScreenPosition_InRange - Passed in 0.006s
-
✅ TestHelper.Random.RandomWrapperTest - 3/3 - Passed in 0.003s
- ✅ Constructor - Passed in 0.002s
- ✅ Constructor_NegativeSeedValue_UsingAbsoluteValue - Passed in 0.001s
- ✅ DefaultConstructor_UsingTickCount - Passed in 0.001s
-
✅ TestHelper.Random.StubRandomTest - 2/2 - Passed in 0.006s
- ✅ Next_ReturnSpecifiedValues - Passed in 0.004s
- ✅ ToString_ReturnName - Passed in 0.001s
Annotations
Check failure on line 24 in Tests/Runtime/Attributes/GameViewResolutionAttributeTest.cs
github-actions / test result (2019.4.40f1)
TestHelper.Attributes.GameViewResolutionAttributeTest.Attach_SetScreenSize
Expected: 1920
But was: 640
Raw output
SetCustomResolution method not found.
[Code Coverage] Code Coverage results for visited sequence points were saved in /github/workspace/CodeCoverage/UnityProject~-opencov/PlayMode/TestCoverageResults_0001.xml
at TestHelper.Attributes.GameViewResolutionAttributeTest+<Attach_SetScreenSize>d__2.MoveNext () [0x00071] in /github/workspace/Tests/Runtime/Attributes/GameViewResolutionAttributeTest.cs:24
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <eae584ce26bc40229c1b1aa476bfa589>:0
at UnityEngine.TestTools.TestRunner.TestTaskWrapper+<Execute>d__2.MoveNext () [0x00074] in /github/workspace/UnityProject~/Library/PackageCache/com.unity.test-framework@1.3.5/UnityEngine.TestRunner/TestRunner/TestTaskWrapper.cs:31
at UnityEngine.TestTools.TestEnumerator+<Execute>d__7.MoveNext () [0x0004e] in /github/workspace/UnityProject~/Library/PackageCache/com.unity.test-framework@1.3.5/UnityEngine.TestRunner/NUnitExtensions/Attributes/TestEnumerator.cs:44