diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 998f446..e156f32 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -71,7 +71,7 @@ jobs: - name: Install dependencies run: | npm install -g openupm-cli - openupm add -f com.unity.test-framework@1.4.4 + openupm add -f com.unity.test-framework@1.4.5 openupm add -f com.unity.testtools.codecoverage openupm add -f com.cysharp.unitask working-directory: ${{ env.CREATED_PROJECT_PATH }} diff --git a/Makefile b/Makefile index e2e7941..20b0973 100644 --- a/Makefile +++ b/Makefile @@ -123,7 +123,7 @@ create_project: -batchmode \ -quit touch UnityProject~/Assets/.gitkeep - openupm -c $(PROJECT_HOME) add -f com.unity.test-framework@1.4.4 + openupm -c $(PROJECT_HOME) add -f com.unity.test-framework@1.4.5 openupm -c $(PROJECT_HOME) add -f com.unity.testtools.codecoverage openupm -c $(PROJECT_HOME) add -f com.cysharp.unitask openupm -c $(PROJECT_HOME) add -ft $(PACKAGE_NAME)@file:../../ diff --git a/Tests/Runtime/Attributes/GizmosShowOnGameViewAttributeTest.cs b/Tests/Runtime/Attributes/GizmosShowOnGameViewAttributeTest.cs index c1f2458..8dc6b85 100644 --- a/Tests/Runtime/Attributes/GizmosShowOnGameViewAttributeTest.cs +++ b/Tests/Runtime/Attributes/GizmosShowOnGameViewAttributeTest.cs @@ -62,6 +62,8 @@ public async Task AttachToAsyncTest_ShowGizmos() await Task.Yield(); } + [IgnoreBatchMode( + "The following error occurred since UTF v1.4.5: UnityTest yielded WaitForEndOfFrame, which is not evoked in batchmode.")] [UnityTest] [CreateScene(camera: true, light: true)] [GizmosShowOnGameView] diff --git a/Tests/Runtime/Attributes/TakeScreenshotAttributeTest.cs b/Tests/Runtime/Attributes/TakeScreenshotAttributeTest.cs index 914369b..fbdb4fc 100644 --- a/Tests/Runtime/Attributes/TakeScreenshotAttributeTest.cs +++ b/Tests/Runtime/Attributes/TakeScreenshotAttributeTest.cs @@ -88,6 +88,8 @@ public void AttachToAsyncTest_SaveScreenshotToDefaultPath_ExistFile() Assert.That(new FileInfo(path), Has.Length.GreaterThan(FileSizeThreshold)); } + [IgnoreBatchMode( + "The following error occurred since UTF v1.4.5: UnityTest yielded WaitForEndOfFrame, which is not evoked in batchmode.")] [UnityTest, Order(0)] [LoadScene(TestScene)] [TakeScreenshot] @@ -107,6 +109,8 @@ public IEnumerator AttachToUnityTest_SaveScreenshotToDefaultPath() // Take screenshot after running the test. } + [IgnoreBatchMode( + "The following error occurred since UTF v1.4.5: UnityTest yielded WaitForEndOfFrame, which is not evoked in batchmode.")] [Test, Order(1)] public void AttachToUnityTest_SaveScreenshotToDefaultPath_ExistFile() {