Skip to content

Add BuildSceneAttribute and SceneManagerHelper.LoadSceneAsync method #175

Add BuildSceneAttribute and SceneManagerHelper.LoadSceneAsync method

Add BuildSceneAttribute and SceneManagerHelper.LoadSceneAsync method #175

GitHub Actions / test result (2023.2.5f1) completed Apr 29, 2024 in 0s

⚠️ test result (2023.2.5f1) - 106/112, skipped: 6 - Passed in 15.491s

✅ editmode-results.xml - 3/3 - Passed in 0.242s

⚠️ playmode-results.xml - 103/109, skipped: 6 - Passed in 15.249s

Details

✅ editmode-results.xml - 3/3 - Passed in 0.242s
  • ✅ TestHelper.Editor.CreateSceneAttributeTest - 1/1 - Passed in 0.035s
    • Attach_CreateNewSceneWithCameraAndLight - Passed in 0.035s
  • ✅ TestHelper.Editor.LoadSceneAttributeTest - 1/1 - Passed in 0.051s
    • Attach_LoadedSceneNotInBuild - Passed in 0.051s
  • ✅ TestHelper.Editor.TemporaryBuildScenesUsingInTestTest - 1/1 - Passed in 0.012s
    • GetScenesUsingInTest_AttachedToMethod_ReturnScenesSpecifiedByAttribute - Passed in 0.012s
⚠️ playmode-results.xml - 103/109, skipped: 6 - Passed in 15.249s
  • ✅ TestHelper.RuntimeInternals.CommandLineArgsTest - 3/3 - Passed in 0.016s
    • DictionaryFromCommandLineArgs - Passed in 0.015s
    • 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.020s
    • GetExistScenePath_ExistPath_GotExistScenePath("Packages/com.nowsprinting.test-helper/Tests/Scenes/NotInScenesInBuild.unity") - Passed in 0.014s
    • GetExistScenePath_ExistPath_GotExistScenePath("Packages/com.nowsprinting.test-helper/Tes?s/S?enes/NotInScenesInBuild.unity") - Passed in 0.003s
    • GetExistScenePath_ExistPath_GotExistScenePath("Packages/com.nowsprinting.test-helper///NotInScenesInBuild.unity") - Passed in 0.002s
    • GetExistScenePath_ExistPath_GotExistScenePath("Packages/com.nowsprinting.test-helper//NotInScenesInBuild.unity")** - Passed in 0.002s
  • ✅ TestHelper.RuntimeInternals.SceneManagerHelperTest.GetExistScenePath_InvalidGlobPattern_ThrowsArgumentException - 5/5 - Passed in 0.007s
    • GetExistScenePath_InvalidGlobPattern_ThrowsArgumentException("Packages//NotInScenesInBuild.unity")** - Passed in 0.006s
    • GetExistScenePath_InvalidGlobPattern_ThrowsArgumentException("/NotInScenesInBuild.unity")** - Passed in 0.000s
    • GetExistScenePath_InvalidGlobPattern_ThrowsArgumentException("Packages/com.nowsprinting.test-helper/Tests/Scenes/NotInScenesInBuild") - Passed in 0.000s
    • GetExistScenePath_InvalidGlobPattern_ThrowsArgumentException("Packages/com.nowsprinting.test-helper/Tests/Scenes/Not??ScenesInBuild.unity") - Passed in 0.000s
    • ✅ *GetExistScenePath_InvalidGlobPattern_ThrowsArgumentException("Packages/com.nowsprinting.test-helper/Tests/Scenes/InScenesInBuild.unity") - Passed in 0.000s
  • ✅ TestHelper.RuntimeInternals.SceneManagerHelperTest.GetExistScenePath_NotExistPath_InEditor_ThrowsFileNotFoundException - 2/2 - Passed in 0.006s
    • GetExistScenePath_NotExistPath_InEditor_ThrowsFileNotFoundException("Packages/com.nowsprinting.test-helper/Tests/Scenes/NotExistScene.unity") - Passed in 0.004s
    • GetExistScenePath_NotExistPath_InEditor_ThrowsFileNotFoundException("Packages/com.nowsprinting.test-helper/*/NotInScenesInBuild.unity") - Passed in 0.002s
  • ✅ TestHelper.RuntimeInternals.SceneManagerHelperTest.GetExistScenePathOnPlayer_GotSceneName - 1/1 - Passed in 0.001s
    • GetExistScenePathOnPlayer_GotSceneName("Packages/com.nowsprinting.test-helper/Tests/Scenes/NotInScenesInBuild.unity") - Passed in 0.001s
  • ✅ TestHelper.RuntimeInternals.SceneManagerHelperTest.LoadSceneCoroutine_LoadedScene - 3/3 - Passed in 1.810s
    • LoadSceneCoroutine_LoadedScene("Packages/com.nowsprinting.test-helper/Tests/Scenes/NotInScenesInBuild.unity") - Passed in 0.125s
    • LoadSceneCoroutine_LoadedScene("Packages/com.nowsprinting.test-helper//NotInScenesInBuildForGlob.unity")** - Passed in 1.533s
    • LoadSceneCoroutine_LoadedScene("../Scenes/NotInScenesInBuildForRelative.unity") - Passed in 0.152s
  • ✅ TestHelper.RuntimeInternals.ScreenshotHelperTest - 4/4 - Passed in 0.718s
    • TakeScreenshot_FromAsyncTest - Passed in 0.285s
    • TakeScreenshot_Multiple_SaveToEachSpecifyPaths - Passed in 0.157s
    • TakeScreenshot_SaveToDefaultPath - Passed in 0.140s
    • TakeScreenshot_SpecifySuperSizeAndStereoCaptureMode_NotWork - Passed in 0.135s
  • ✅ TestHelper.RuntimeInternals.Wrappers.UnityEditor.GameViewSizeGroupWrapperTest - 7/7 - Passed in 0.004s
    • AddCustomSize_Added - Passed in 0.002s
    • IndexOf_FoundAddedSize - Passed in 0.001s
    • RemoveCustomSize_Removed - Passed in 0.001s
    • CreateInstance_Instantiate - Passed in 0.000s
    • GetGameViewSize_GotGameViewSize - Passed in 0.000s
    • GetTotalCount_GotCount - Passed in 0.000s
    • IndexOf_NotFound - Passed in 0.000s
  • ✅ TestHelper.RuntimeInternals.Wrappers.UnityEditor.GameViewSizesWrapperTest - 2/2 - Passed in 0.001s
    • CreateInstance_Instantiate - Passed in 0.000s
    • CurrentGroup_GetGameViewSizeGroupInstance - Passed in 0.000s
  • ✅ TestHelper.RuntimeInternals.Wrappers.UnityEditor.GameViewSizeWrapperTest - 7/7 - Passed in 0.004s
    • CreateInstance_Instantiate - Passed in 0.001s
    • Equals_DifferentHeight_NotEquals - Passed in 0.001s
    • Equals_DifferentType_NotEquals - Passed in 0.001s
    • Equals_DifferentWidth_NotEquals - Passed in 0.000s
    • Equals_InnerObjectIsNull_NotEquals - Passed in 0.000s
    • Equals_SameSizeButDifferentName_Equals - Passed in 0.000s
    • Equals_WrapperObjectIsNull_NotEquals - Passed in 0.000s
  • ✅ TestHelper.RuntimeInternals.Wrappers.UnityEditor.GameViewWrapperTest - 2/2 - Passed in 0.001s
    • GetWindow - Passed in 0.001s
    • SelectedSizeIndex - Passed in 0.001s
  • ✅ TestHelper.Attributes.BuildSceneAttributeTest - 1/1 - Passed in 0.088s
    • Attach_SceneIntoBuild - Passed in 0.088s
  • ✅ TestHelper.Attributes.CreateSceneAttributeTest.AttachToParameterizedTest_CreateNewScene - 2/2 - Passed in 0.110s
    • AttachToParameterizedTest_CreateNewScene(0) - Passed in 0.058s
    • AttachToParameterizedTest_CreateNewScene(1) - Passed in 0.053s
  • ✅ TestHelper.Attributes.CreateSceneAttributeTest - 5/5 - Passed in 0.939s
    • Attach_CreateNewSceneWithoutCameraAndLight - Passed in 0.061s
    • Attach_WithCamera_CreateNewSceneWithCamera - Passed in 0.082s
    • Attach_WithLight_CreateNewSceneWithLight - Passed in 0.524s
    • AttachToAsyncTest_CreateNewScene - Passed in 0.140s
    • AttachToUnityTest_CreateNewScene - Passed in 0.132s
  • ⚠️ TestHelper.Attributes.FocusGameViewAttributeTest - 1/4, skipped: 3 - Passed in 0.002s
    • ⚠️ Attach_GameViewHasFocus - Skipped
    • Attach_KeepBatchmode - Passed in 0.002s
    • ⚠️ AttachToAsyncTest_GameViewHasFocus - Skipped
    • ⚠️ AttachToUnityTest_GameViewHasFocus - Skipped
  • ✅ TestHelper.Attributes.GameViewResolutionAttributeTest - 2/2 - Passed in 0.805s
    • AttachToAsyncTest_SetScreenSizeToFullHD - Passed in 0.674s
    • AttachToUnityTest_SetScreenSizeToVGA - Passed in 0.131s
  • ✅ TestHelper.Attributes.GizmosShowOnGameViewAttributeTest - 4/4 - Passed in 2.105s
    • Attach_False_HideGizmos - Passed in 0.283s
    • Attach_True_ShowGizmos - Passed in 0.816s
    • AttachToAsyncTest_ShowGizmos - Passed in 0.508s
    • AttachToUnityTest_ShowGizmos - Passed in 0.498s
  • ⚠️ 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.261s
    • Attach_SkipOnWindowMode - Passed in 0.000s
    • AttachToAsyncTest_SkipOnWindowMode - Passed in 0.123s
    • AttachToUnityTest_SkipOnWindowMode - Passed in 0.137s
  • ✅ TestHelper.Attributes.LoadSceneAttributeTest - 5/5 - Passed in 0.852s
    • Attach_LoadedSceneNotInBuild - Passed in 0.161s
    • AttachToAsyncTest_LoadedSceneNotInBuild - Passed in 0.216s
    • AttachToUnityTest_LoadedSceneNotInBuild - Passed in 0.224s
    • UsingGlob_LoadedSceneNotInBuild - Passed in 0.114s
    • UsingRelativePath_LoadedSceneNotInBuild - Passed in 0.136s
  • ✅ TestHelper.Attributes.TakeScreenshotAttributeTest.AttachToParameterizedTest_SaveAllScreenshots - 4/4 - Passed in 0.718s
    • AttachToParameterizedTest_SaveAllScreenshots(0,2) - Passed in 0.217s
    • AttachToParameterizedTest_SaveAllScreenshots(0,3) - Passed in 0.159s
    • AttachToParameterizedTest_SaveAllScreenshots(1,2) - Passed in 0.161s
    • AttachToParameterizedTest_SaveAllScreenshots(1,3) - Passed in 0.182s
  • ✅ TestHelper.Attributes.TakeScreenshotAttributeTest.AttachToParameterizedTest_SaveAllScreenshots_ExistFile - 4/4 - Passed in 0.002s
    • AttachToParameterizedTest_SaveAllScreenshots_ExistFile(0,2) - Passed in 0.001s
    • AttachToParameterizedTest_SaveAllScreenshots_ExistFile(0,3) - Passed in 0.000s
    • AttachToParameterizedTest_SaveAllScreenshots_ExistFile(1,2) - Passed in 0.000s
    • AttachToParameterizedTest_SaveAllScreenshots_ExistFile(1,3) - Passed in 0.000s
  • ✅ TestHelper.Attributes.TakeScreenshotAttributeTest - 16/16 - Passed in 1.583s
    • Attach_SaveScreenshotToDefaultPath - Passed in 0.176s
    • AttachWithSuperSize_SaveSuperSizeScreenshot - Passed in 0.233s
    • AttachToAsyncTest_SaveScreenshotToDefaultPath - Passed in 0.226s
    • AttachWithStereoCaptureMode_SaveStereoScreenshot - Passed in 0.165s
    • AttachWithGizmos_TakeScreenshotWithGizmos - Passed in 0.235s
    • AttachWithFilename_SaveScreenshotToSpecifyPath - Passed in 0.158s
    • AttachWithDirectory_SaveScreenshotToSpecifyPath - Passed in 0.157s
    • AttachToUnityTest_SaveScreenshotToDefaultPath - Passed in 0.229s
    • AttachToAsyncTest_SaveScreenshotToDefaultPath_ExistFile - Passed in 0.001s
    • AttachWithDirectory_SaveScreenshotToSpecifyPath_ExistFile - Passed in 0.000s
    • Attach_SaveScreenshotToDefaultPath_ExistFile - Passed in 0.000s
    • AttachWithFilename_SaveScreenshotToSpecifyPath_ExistFile - Passed in 0.000s
    • AttachWithGizmos_TakeScreenshotWithGizmos_ExistFile - Passed in 0.000s
    • AttachWithStereoCaptureMode_SaveStereoScreenshot_ExistFile - Passed in 0.000s
    • AttachToUnityTest_SaveScreenshotToDefaultPath_ExistFile - Passed in 0.000s
    • AttachWithSuperSize_SaveSuperSizeScreenshot_ExistFile - Passed in 0.000s
  • ✅ TestHelper.Attributes.TimeScaleAttributeTest - 4/4 - Passed in 0.256s
    • AttachToUnityTest_ApplyTimeScale - Passed in 0.105s
    • AttachToAsyncTest_ApplyTimeScale - Passed in 0.106s
    • Attach_ApplyTimeScale - Passed in 0.044s
    • AfterRunningTest_RevertTimeScale - Passed in 0.000s
  • ✅ TestHelper.Comparers.GameObjectNameComparerTest - 4/4 - Passed in 0.008s
    • UsingWithCollection_CompareGameObjectsByName - Passed in 0.003s
    • UsingWithCollection_NotContain_Failure - Passed in 0.003s
    • UsingWithEqualTo_CompareGameObjectsByName - Passed in 0.000s
    • UsingWithEqualTo_NotEqualName_Failure - Passed in 0.001s
  • ✅ TestHelper.Constraints.DestroyedConstraintTest - 6/6 - Passed in 0.005s
    • IsDestroyed_DestroyedGameObject_Success - Passed in 0.001s
    • IsDestroyed_NotDestroyedGameObject_Failure - Passed in 0.001s
    • IsDestroyed_NotGameObject_Failure - Passed in 0.001s
    • IsDestroyed_Null_Failure - Passed in 0.000s
    • IsNotDestroyed_DestroyedGameObject_Failure - Passed in 0.002s
    • IsNotDestroyed_NotDestroyedGameObject_Success - Passed in 0.000s