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

Fix scene unload error on AfterTest in CreatedSceneAttribute #116

Merged
merged 1 commit into from
Jan 6, 2025

Fix scene unload error on AfterTest in CreatedScene

198efe7
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Fix scene unload error on AfterTest in CreatedSceneAttribute #116

Fix scene unload error on AfterTest in CreatedScene
198efe7
Select commit
Loading
Failed to load commit list.
GitHub Actions / test result (2022.3.51f1, Standalone) completed Jan 6, 2025 in 0s

⚠️ test result (2022.3.51f1, Standalone) - 100/143, skipped: 43 - Passed in 0.501s

⚠️ standalone-results.xml - 100/143, skipped: 43 - Passed in 0.501s

Details

⚠️ standalone-results.xml - 100/143, skipped: 43 - Passed in 0.501s
  • ✅ TestHelper.RuntimeInternals.CommandLineArgsTest - 5/5 - Passed in 0.018s
    • DictionaryFromCommandLineArgs - Passed in 0.016s
    • GetJUnitResultsPath_WithArgument_GotSpecifiedPath - Passed in 0.000s
    • GetJUnitResultsPath_WithoutArgument_ReturnsNull - Passed in 0.001s
    • GetScreenshotDirectory_WithArgument_GotSpecifiedDirectory - Passed in 0.000s
    • GetScreenshotDirectory_WithoutArgument_GotDefaultDirectory - Passed in 0.001s
  • ✅ TestHelper.RuntimeInternals.SceneManagerHelperTest.GetAbsolutePath - 2/2 - Passed in 0.001s
    • GetAbsolutePath("./Scene.unity","Assets/Tests/Runtime/Caller.cs","Assets/Tests/Runtime/Scene.unity") - Passed in 0.001s
    • GetAbsolutePath("../../BadPath/../Scenes/Scene.unity","Packages/com.nowsprinting.test-helper/Tests/Runtime/Attributes/Caller.cs","Packages/com.nowsprinting.test-helper/Tests/Scenes/Scene.unity") - Passed in 0.000s
  • ✅ TestHelper.RuntimeInternals.SceneManagerHelperTest.GetExistScenePath_ExistPath_GotExistScenePath - 4/4 - Passed in 0.001s
    • GetExistScenePath_ExistPath_GotExistScenePath("Packages/com.nowsprinting.test-helper/Tests/Scenes/NotInScenesInBuild.unity") - Passed in 0.001s
    • GetExistScenePath_ExistPath_GotExistScenePath("Packages/com.nowsprinting.test-helper/Tes?s/S?enes/NotInScenesInBuild.unity") - Passed in 0.000s
    • GetExistScenePath_ExistPath_GotExistScenePath("Packages/com.nowsprinting.test-helper///NotInScenesInBuild.unity") - Passed in 0.000s
    • GetExistScenePath_ExistPath_GotExistScenePath("Packages/com.nowsprinting.test-helper//NotInScenesInBuild.unity")** - Passed in 0.000s
  • ✅ TestHelper.RuntimeInternals.SceneManagerHelperTest.GetExistScenePath_InvalidGlobPattern_OutputLogError - 5/5 - Passed in 0.010s
    • GetExistScenePath_InvalidGlobPattern_OutputLogError("/NotInScenesInBuild.unity","Scene path must start with `Assets/` or `Packages/`")** - Passed in 0.007s
    • GetExistScenePath_InvalidGlobPattern_OutputLogError("Packages/com.nowsprinting.test-helper/Tests/Scenes/NotInScenesInBuild","Scene path must ends with `.unity`") - Passed in 0.001s
    • GetExistScenePath_InvalidGlobPattern_OutputLogError("Packages//NotInScenesInBuild.unity","Wildcards cannot be used in the package name of path")** - Passed in 0.001s
    • GetExistScenePath_InvalidGlobPattern_OutputLogError("Packages/com.nowsprinting.test-helper/Tests/Scenes/Not??ScenesInBuild.unity","Wildcards cannot be used in the scene name of path") - Passed in 0.001s
    • ✅ *GetExistScenePath_InvalidGlobPattern_OutputLogError("Packages/com.nowsprinting.test-helper/Tests/Scenes/InScenesInBuild.unity","Wildcards cannot be used in the scene name of path") - Passed in 0.001s
  • ⚠️ TestHelper.RuntimeInternals.SceneManagerHelperTest.GetExistScenePath_NotExistPath_InEditor_OutputLogError - 0/2, skipped: 2 - Passed in 0.000s
    • ⚠️ GetExistScenePath_NotExistPath_InEditor_OutputLogError("Packages/com.nowsprinting.test-helper/Tests/Scenes/NotExistScene.unity") - Skipped
    • ⚠️ GetExistScenePath_NotExistPath_InEditor_OutputLogError("Packages/com.nowsprinting.test-helper/*/NotInScenesInBuild.unity") - Skipped
  • ✅ TestHelper.RuntimeInternals.SceneManagerHelperTest.GetExistScenePathOnPlayer_GotSceneName - 1/1 - Passed in 0.000s
    • GetExistScenePathOnPlayer_GotSceneName("Packages/com.nowsprinting.test-helper/Tests/Scenes/NotInScenesInBuild.unity") - Passed in 0.000s
  • ⚠️ TestHelper.RuntimeInternals.SceneManagerHelperTest.LoadSceneAsync_LoadedScene - 0/3, skipped: 3 - Passed in 0.000s
    • ⚠️ LoadSceneAsync_LoadedScene("Packages/com.nowsprinting.test-helper/Tests/Scenes/NotInScenesInBuild.unity") - Skipped
    • ⚠️ LoadSceneAsync_LoadedScene("Packages/com.nowsprinting.test-helper//NotInScenesInBuildForGlob.unity")** - Skipped
    • ⚠️ LoadSceneAsync_LoadedScene("../Scenes/NotInScenesInBuildForRelative.unity") - Skipped
  • ✅ TestHelper.RuntimeInternals.ScreenshotHelperTest - 5/5 - Passed in 0.173s
    • TakeScreenshot_FromAsyncTest - Passed in 0.087s
    • TakeScreenshot_Multiple_SaveToEachSpecifyPaths - Passed in 0.038s
    • TakeScreenshot_SaveToDefaultPath - Passed in 0.026s
    • TakeScreenshot_SpecifySuperSizeAndStereoCaptureMode_NotWork - Passed in 0.005s
    • TakeScreenshot_WithoutLogFilepath_SuppressLogging - Passed in 0.017s
  • ✅ TestHelper.RuntimeInternals.ScreenshotHelperTest+Internal.DefaultFilename_Parameterized - 1/1 - Passed in 0.001s
    • DefaultFilename_Parameterized(0,"s") - Passed in 0.001s
  • ✅ TestHelper.Attributes.BuildSceneAttributeTest - 2/2 - Passed in 0.011s
    • Attach_InferredSceneIntoBuild - Passed in 0.006s
    • Attach_SceneIntoBuild - Passed in 0.005s
  • ✅ TestHelper.Attributes.CreateSceneAttributeTest.AttachToParameterizedTest_CreateNewScene - 2/2 - Passed in 0.001s
    • AttachToParameterizedTest_CreateNewScene(0) - Passed in 0.001s
    • AttachToParameterizedTest_CreateNewScene(1) - Passed in 0.000s
  • ✅ TestHelper.Attributes.CreateSceneAttributeTest - 6/6 - Passed in 0.010s
    • Attach_CreateNewSceneWithoutCameraAndLight - Passed in 0.003s
    • Attach_WithCamera_CreateNewSceneWithCamera - Passed in 0.002s
    • Attach_WithLight_CreateNewSceneWithLight - Passed in 0.001s
    • AttachToAsyncTest_CreateNewScene - Passed in 0.002s
    • AttachToUnityTest_CreateNewScene - Passed in 0.001s
    • UnloadCreatedSceneInTest_NoErrorInAfterTest - Passed in 0.001s
  • ✅ TestHelper.Attributes.CreateSceneAttributeTest+UnloadOthersOptionTest - 3/3 - Passed in 0.004s
    • UnloadOthersOption_BeforeTest - Passed in 0.000s
    • UnloadOthersOption_False_NotUnloadOtherScenes - Passed in 0.002s
    • UnloadOthersOption_True_UnloadOtherScenes - Passed in 0.002s
  • ⚠️ TestHelper.Attributes.FocusGameViewAttributeTest - 0/4, skipped: 4 - Passed in 0.000s
    • ⚠️ Attach_GameViewHasFocus - Skipped
    • ⚠️ Attach_KeepBatchmode - Skipped
    • ⚠️ AttachToAsyncTest_GameViewHasFocus - Skipped
    • ⚠️ AttachToUnityTest_GameViewHasFocus - Skipped
  • ⚠️ TestHelper.Attributes.GameViewResolutionAttributeTest - 0/2, skipped: 2 - Passed in 0.000s
    • ⚠️ AttachToAsyncTest_SetScreenSizeToFullHD - Skipped
    • ⚠️ AttachToUnityTest_SetScreenSizeToVGA - Skipped
  • ⚠️ TestHelper.Attributes.GizmosShowOnGameViewAttributeTest - 0/4, skipped: 4 - Passed in 0.000s
    • ⚠️ Attach_False_HideGizmos - Skipped
    • ⚠️ Attach_True_ShowGizmos - Skipped
    • ⚠️ AttachToAsyncTest_ShowGizmos - Skipped
    • ⚠️ AttachToUnityTest_ShowGizmos - Skipped
  • ⚠️ TestHelper.Attributes.IgnoreBatchModeAttributeTest - 0/3, skipped: 3 - Passed in 0.000s
    • ⚠️ Attach_SkipOnBatchMode - Skipped
    • ⚠️ AttachToAsyncTest_SkipOnBatchMode - Skipped
    • ⚠️ AttachToUnityTest_SkipOnBatchMode - Skipped
  • ✅ TestHelper.Attributes.IgnoreWindowModeAttributeTest - 3/3 - Passed in 0.002s
    • Attach_SkipOnWindowMode - Passed in 0.000s
    • AttachToAsyncTest_SkipOnWindowMode - Passed in 0.001s
    • AttachToUnityTest_SkipOnWindowMode - Passed in 0.001s
  • ✅ TestHelper.Attributes.LoadSceneAttributeTest - 6/6 - Passed in 0.034s
    • Attach_LoadedSceneNotInBuild - Passed in 0.004s
    • AttachToAsyncTest_LoadedSceneNotInBuild - Passed in 0.005s
    • AttachToUnityTest_LoadedSceneNotInBuild - Passed in 0.004s
    • UsingGlob_LoadedSceneNotInBuild - Passed in 0.004s
    • UsingInferredPath_LoadedSceneNotInBuild - Passed in 0.004s
    • UsingRelativePath_LoadedSceneNotInBuild - Passed in 0.013s
  • ⚠️ TestHelper.Attributes.TakeScreenshotAttributeTest - 0/24, skipped: 24 - Passed in 0.000s
    • ⚠️ Attach_SaveScreenshotToDefaultPath - Skipped
    • ⚠️ Attach_SaveScreenshotToDefaultPath_ExistFile - Skipped
    • ⚠️ AttachToAsyncTest_SaveScreenshotToDefaultPath - Skipped
    • ⚠️ AttachToAsyncTest_SaveScreenshotToDefaultPath_ExistFile - Skipped
    • ⚠️ AttachToParameterizedTest_SaveAllScreenshots(0,2) - Skipped
    • ⚠️ AttachToParameterizedTest_SaveAllScreenshots(0,3) - Skipped
    • ⚠️ AttachToParameterizedTest_SaveAllScreenshots(1,2) - Skipped
    • ⚠️ AttachToParameterizedTest_SaveAllScreenshots(1,3) - Skipped
    • ⚠️ AttachToParameterizedTest_SaveAllScreenshots_ExistFile(0,2) - Skipped
    • ⚠️ AttachToParameterizedTest_SaveAllScreenshots_ExistFile(0,3) - Skipped
    • ⚠️ AttachToParameterizedTest_SaveAllScreenshots_ExistFile(1,2) - Skipped
    • ⚠️ AttachToParameterizedTest_SaveAllScreenshots_ExistFile(1,3) - Skipped
    • ⚠️ AttachToUnityTest_SaveScreenshotToDefaultPath - Skipped
    • ⚠️ AttachToUnityTest_SaveScreenshotToDefaultPath_ExistFile - Skipped
    • ⚠️ AttachWithDirectory_SaveScreenshotToSpecifyPath - Skipped
    • ⚠️ AttachWithDirectory_SaveScreenshotToSpecifyPath_ExistFile - Skipped
    • ⚠️ AttachWithFilename_SaveScreenshotToSpecifyPath - Skipped
    • ⚠️ AttachWithFilename_SaveScreenshotToSpecifyPath_ExistFile - Skipped
    • ⚠️ AttachWithGizmos_TakeScreenshotWithGizmos - Skipped
    • ⚠️ AttachWithGizmos_TakeScreenshotWithGizmos_ExistFile - Skipped
    • ⚠️ AttachWithStereoCaptureMode_SaveStereoScreenshot - Skipped
    • ⚠️ AttachWithStereoCaptureMode_SaveStereoScreenshot_ExistFile - Skipped
    • ⚠️ AttachWithSuperSize_SaveSuperSizeScreenshot - Skipped
    • ⚠️ AttachWithSuperSize_SaveSuperSizeScreenshot_ExistFile - Skipped
  • ✅ TestHelper.Attributes.TimeScaleAttributeTest - 4/4 - Passed in 0.003s
    • AttachToUnityTest_ApplyTimeScale - Passed in 0.002s
    • AttachToAsyncTest_ApplyTimeScale - Passed in 0.001s
    • Attach_ApplyTimeScale - Passed in 0.000s
    • AfterRunningTest_RevertTimeScale - Passed in 0.000s
  • ✅ TestHelper.Attributes.UnityVersionAttributeTest.IsSkip_newerThanOrEqual_NotSkip - 5/5 - Passed in 0.000s
    • IsSkip_newerThanOrEqual_NotSkip("2023.2.16f1") - Passed in 0.000s
    • IsSkip_newerThanOrEqual_NotSkip("2023.2.15f1") - Passed in 0.000s
    • IsSkip_newerThanOrEqual_NotSkip("2023.2") - Passed in 0.000s
    • IsSkip_newerThanOrEqual_NotSkip("2023") - Passed in 0.000s
    • IsSkip_newerThanOrEqual_NotSkip("2022") - Passed in 0.000s
  • ✅ TestHelper.Attributes.UnityVersionAttributeTest.IsSkip_newerThanOrEqual_Skip - 3/3 - Passed in 0.000s
    • IsSkip_newerThanOrEqual_Skip("2023.2.17f1") - Passed in 0.000s
    • IsSkip_newerThanOrEqual_Skip("2023.3") - Passed in 0.000s
    • IsSkip_newerThanOrEqual_Skip("6000") - Passed in 0.000s
  • ✅ TestHelper.Attributes.UnityVersionAttributeTest.IsSkip_olderThan_NotSkip - 5/5 - Passed in 0.000s
    • IsSkip_olderThan_NotSkip("2023.2.17f1") - Passed in 0.000s
    • IsSkip_olderThan_NotSkip("2023.2.16f1") - Passed in 0.000s
    • IsSkip_olderThan_NotSkip("2023.2") - Passed in 0.000s
    • IsSkip_olderThan_NotSkip("2023") - Passed in 0.000s
    • IsSkip_olderThan_NotSkip("6000") - Passed in 0.000s
  • ✅ TestHelper.Attributes.UnityVersionAttributeTest.IsSkip_olderThan_Skip - 4/4 - Passed in 0.000s
    • IsSkip_olderThan_Skip("2023.2.15f1") - Passed in 0.000s
    • IsSkip_olderThan_Skip("2023.1") - Passed in 0.000s
    • IsSkip_olderThan_Skip("2022") - Passed in 0.000s
    • IsSkip_olderThan_Skip("2021") - Passed in 0.000s
  • ⚠️ TestHelper.Attributes.UnityVersionAttributeTest - 1/2, skipped: 1 - Passed in 0.000s
    • Attach_newerThanOrEqual2019_NotSkip - Passed in 0.000s
    • ⚠️ Attach_olderThan2019_4_0f1_Skip - Skipped
  • ✅ TestHelper.Comparers.GameObjectNameComparerTest - 4/4 - Passed in 0.008s
    • UsingWithCollection_CompareGameObjectsByName - Passed in 0.002s
    • UsingWithCollection_NotContain_Failure - Passed in 0.005s
    • UsingWithEqualTo_CompareGameObjectsByName - Passed in 0.000s
    • UsingWithEqualTo_NotEqualName_Failure - Passed in 0.001s
  • ✅ TestHelper.Comparers.XDocumentComparerTest - 2/2 - Passed in 0.044s
    • CreateComparisonDictionary - Passed in 0.020s
    • UsingWithEqualTo_CompareLoosely - Passed in 0.024s
  • ✅ TestHelper.Comparers.XmlComparerTest.Compare_CompareAsXml - 20/20 - Passed in 0.004s
    • Compare_CompareAsXml("<root><child>value1</child><child attribute=&quot;attr&quot; attribute2=&quot;attr2&quot;>value2</child></root>","<root><child>value1</child><child attribute=&quot;attr&quot; attribute2=&quot;attr2&quot;>value2</child></root>",0) - Passed in 0.000s
    • Compare_CompareAsXml(null,null,0) - Passed in 0.000s
    • Compare_CompareAsXml("<root><child>value1</child><child attribute=&quot;attr&quot; attribute2=&quot;attr2&quot;>value2</child></root>","<root><child>value1</child><child attribute2=&quot;attr2&quot;>value2</child></root>",-1) - Passed in 0.000s
    • Compare_CompareAsXml("<root><child>value1</child><child attribute=&quot;attr&quot; attribute2=&quot;attr2&quot;>value2</child></root>","<root><child>value1</child><child>value2</child></root>",-1) - Passed in 0.000s
    • Compare_CompareAsXml("<root><child>value1</child><child attribute=&quot;attr&quot; attribute2=&quot;attr2&quot;>value2</child></root>","<root><child>value1</child><child attribute=&quot;bad attr&quot; attribute2=&quot;attr2&quot;>value2</child></root>",-1) - Passed in 0.000s
    • Compare_CompareAsXml("<root><child>value1</child><child attribute=&quot;attr&quot; attribute2=&quot;attr2&quot;>value2</child></root>","<root><child>bad value</child><child attribute=&quot;attr&quot; attribute2=&quot;attr2&quot;>value2</child></root>",-1) - Passed in 0.000s
    • Compare_CompareAsXml("<root><child>value1</child><child attribute=&quot;attr&quot; attribute2=&quot;attr2&quot;>value2</child></root>","<root><child attribute=&quot;attr&quot; attribute2=&quot;attr2&quot;>value2</child><child>value1</child></root>",0) - Passed in 0.000s
    • Compare_CompareAsXml("<root><child>value1</child><child attribute=&quot;attr&quot; attribute2=&quot;attr2&quot;>value2</child></root>","<root><child>value1</child><child attribute2=&quot;attr2&quot; attribute=&quot;attr&quot;>value2</child></root>",0) - Passed in 0.000s
    • Compare_CompareAsXml("<root><child>value1</child><child attribute=&quot;attr&quot; attribute2=&quot;attr2&quot;>value2</child></root>","<root><!-- comment --><child>value1</child><child attribute=&quot;attr&quot; attribute2=&quot;attr2&quot;>value2</child></root>",0) - Passed in 0.001s
    • Compare_CompareAsXml("<root><child>value1</child><child attribute=&quot;attr&quot; attribute2=&quot;attr2&quot;>value2</child></root>","<?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?>\n<root><child>value1</child><child attribute=&quot;attr&quot; attribute2=&quot;attr2&quot;>value2</child></root>",0) - Passed in 0.000s
    • Compare_CompareAsXml("<root><child>value1</child><child attribute=&quot;attr&quot; attribute2=&quot;attr2&quot;>value2</child></root>","<root>\n<child>\n value1\n</child>\n<child\n attribute=&quot;attr&quot;\n attribute2=&quot;attr2&quot;>\n value2\n</child></root>",0) - Passed in 0.000s
    • Compare_CompareAsXml("<root><child>value1</child><child attribute=&quot;attr&quot; attribute2=&quot;attr2&quot;>value2</child></root>",null,1) - Passed in 0.000s
    • Compare_CompareAsXml("<root><child>value1</child><child attribute=&quot;attr&quot; attribute2=&quot;attr2&quot;>value2</child></root>","<root><child>value1</child></root>",-1) - Passed in 0.000s
    • Compare_CompareAsXml("<root><child attribute=&quot;attr&quot; attribute2=&quot;attr2&quot;>value2</child><child>value1</child></root>","<root><child>value1</child><child attribute=&quot;attr&quot; attribute2=&quot;attr2&quot;>value2</child></root>",0) - Passed in 0.000s
    • Compare_CompareAsXml("<root><child>value1</child><child attribute2=&quot;attr2&quot; attribute=&quot;attr&quot;>value2</child></root>","<root><child>value1</child><child attribute=&quot;attr&quot; attribute2=&quot;attr2&quot;>value2</child></root>",0) - Passed in 0.000s
    • Compare_CompareAsXml("<root><!-- comment --><child>value1</child><child attribute=&quot;attr&quot; attribute2=&quot;attr2&quot;>value2</child></root>","<root><child>value1</child><child attribute=&quot;attr&quot; attribute2=&quot;attr2&quot;>value2</child></root>",0) - Passed in 0.000s
    • Compare_CompareAsXml("<?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?>\n<root><child>value1</child><child attribute=&quot;attr&quot; attribute2=&quot;attr2&quot;>value2</child></root>","<root><child>value1</child><child attribute=&quot;attr&quot; attribute2=&quot;attr2&quot;>value2</child></root>",0) - Passed in 0.001s
    • Compare_CompareAsXml("<root>\n<child>\n value1\n</child>\n<child\n attribute=&quot;attr&quot;\n attribute2=&quot;attr2&quot;>\n value2\n</child></root>","<root><child>value1</child><child attribute=&quot;attr&quot; attribute2=&quot;attr2&quot;>value2</child></root>",0) - Passed in 0.000s
    • Compare_CompareAsXml(null,"<root><child>value1</child><child attribute=&quot;attr&quot; attribute2=&quot;attr2&quot;>value2</child></root>",-1) - Passed in 0.000s
    • Compare_CompareAsXml("<root><child>value1</child></root>","<root><child>value1</child><child attribute=&quot;attr&quot; attribute2=&quot;attr2&quot;>value2</child></root>",1) - Passed in 0.000s
  • ✅ TestHelper.Comparers.XmlComparerTest - 1/1 - Passed in 0.000s
    • UsingWithEqualTo_CompareAsXml - Passed in 0.000s
  • ✅ TestHelper.Constraints.DestroyedConstraintTest - 6/6 - Passed in 0.003s
    • IsDestroyed_DestroyedGameObject_Success - Passed in 0.001s
    • IsDestroyed_NotDestroyedGameObject_Failure - Passed in 0.000s
    • IsDestroyed_NotGameObject_Failure - Passed in 0.001s
    • IsDestroyed_Null_Failure - Passed in 0.000s
    • IsNotDestroyed_DestroyedGameObject_Failure - Passed in 0.001s
    • IsNotDestroyed_NotDestroyedGameObject_Success - Passed in 0.000s