Browse Source

Promoting consistently passing tests to Main suite

Signed-off-by: jckand-amzn <[email protected]>
jckand-amzn 2 năm trước cách đây
mục cha
commit
2c9ee6eb14

+ 35 - 0
AutomatedTesting/Gem/PythonTests/Prefab/TestSuite_Main.py

@@ -37,6 +37,9 @@ class TestAutomation(EditorTestSuite):
     class test_CreatePrefab_ComponentConfigurationRetained(EditorBatchedTest):
         from .tests.create_prefab import CreatePrefab_ComponentConfigurationRetained as test_module
 
+    class test_CreatePrefab_CreationFailsWithDifferentRootEntities(EditorBatchedTest):
+        from .tests.create_prefab import CreatePrefab_CreationFailsWithDifferentRootEntities as test_module
+
     class test_CreatePrefab_UnderAnEntity(EditorBatchedTest):
         from .tests.create_prefab import CreatePrefab_UnderAnEntity as test_module
 
@@ -136,3 +139,35 @@ class TestAutomation(EditorTestSuite):
 
     class test_ReparentEntity_UnderEntityHierarchies(EditorBatchedTest):
         from .tests.reparent_prefab import ReparentEntity_UnderEntityHierarchies as test_module
+
+
[email protected]_periodic
[email protected]("launcher_platform", ['windows_editor'])
[email protected]("project", ["AutomatedTesting"])
+class TestAutomationOverrides(EditorTestSuite):
+
+    # These tests will execute with prefab overrides enabled
+    EditorTestSuite.global_extra_cmdline_args.append("--regset=O3DE/Preferences/Prefabs/EnableOverridesUx=true")
+
+    # Overrides Tests
+
+    class test_AddEntity_UnderUnfocusedInstanceAsOverride(EditorBatchedTest):
+        from .tests.overrides import AddEntity_UnderUnfocusedInstanceAsOverride as test_module
+
+    class test_DeleteEntity_UnderImmediateInstance(EditorBatchedTest):
+        from .tests.overrides import DeleteEntity_UnderImmediateInstance as test_module
+
+    class test_DeleteEntity_UnderNestedInstance(EditorBatchedTest):
+        from .tests.overrides import DeleteEntity_UnderNestedInstance as test_module
+
+    class test_DeletePrefab_UnderImmediateInstance(EditorBatchedTest):
+        from .tests.overrides import DeletePrefab_UnderImmediateInstance as test_module
+
+    class test_DeletePrefab_UnderNestedInstance(EditorBatchedTest):
+        from .tests.overrides import DeletePrefab_UnderNestedInstance as test_module
+
+    class test_EditEntity_UnderImmediateInstance(EditorBatchedTest):
+        from .tests.overrides import EditEntity_UnderImmediateInstance as test_module
+
+    class test_EditEntity_UnderNestedInstance(EditorBatchedTest):
+        from .tests.overrides import EditEntity_UnderNestedInstance as test_module

+ 1 - 37
AutomatedTesting/Gem/PythonTests/Prefab/TestSuite_Periodic.py

@@ -15,13 +15,9 @@ from ly_test_tools.o3de.editor_test import EditorBatchedTest, EditorTestSuite
 @pytest.mark.parametrize("project", ["AutomatedTesting"])
 class TestAutomationNoOverrides(EditorTestSuite):
 
-    # These tests will execute with prefab overrides enabled
+    # These tests will execute with prefab overrides disabled
     EditorTestSuite.global_extra_cmdline_args.append("--regset=O3DE/Preferences/Prefabs/EnableOverridesUx=false")
 
-    # Create Prefab Tests
-    class test_CreatePrefab_CreationFailsWithDifferentRootEntities(EditorBatchedTest):
-        from .tests.create_prefab import CreatePrefab_CreationFailsWithDifferentRootEntities as test_module
-        
     # Spawnables Tests
 
     class test_SC_Spawnables_DespawnOnEntityDeactivate(EditorBatchedTest):
@@ -53,35 +49,3 @@ class TestAutomationNoOverrides(EditorTestSuite):
 
     class test_Lua_Spawnables_SimpleSpawnAndDespawn(EditorBatchedTest):
         from .tests.spawnables import Lua_Spawnables_SimpleSpawnAndDespawn as test_module
-
-
[email protected]_periodic
[email protected]("launcher_platform", ['windows_editor'])
[email protected]("project", ["AutomatedTesting"])
-class TestAutomationOverrides(EditorTestSuite):
-
-    # These tests will execute with prefab overrides enabled
-    EditorTestSuite.global_extra_cmdline_args.append("--regset=O3DE/Preferences/Prefabs/EnableOverridesUx=true")
-
-    # Overrides Tests
-
-    class test_AddEntity_UnderUnfocusedInstanceAsOverride(EditorBatchedTest):
-        from .tests.overrides import AddEntity_UnderUnfocusedInstanceAsOverride as test_module
-
-    class test_DeleteEntity_UnderImmediateInstance(EditorBatchedTest):
-        from .tests.overrides import DeleteEntity_UnderImmediateInstance as test_module
-
-    class test_DeleteEntity_UnderNestedInstance(EditorBatchedTest):
-        from .tests.overrides import DeleteEntity_UnderNestedInstance as test_module
-    
-    class test_DeletePrefab_UnderImmediateInstance(EditorBatchedTest):
-        from .tests.overrides import DeletePrefab_UnderImmediateInstance as test_module
-
-    class test_DeletePrefab_UnderNestedInstance(EditorBatchedTest):
-        from .tests.overrides import DeletePrefab_UnderNestedInstance as test_module
-
-    class test_EditEntity_UnderImmediateInstance(EditorBatchedTest):
-        from .tests.overrides import EditEntity_UnderImmediateInstance as test_module
-
-    class test_EditEntity_UnderNestedInstance(EditorBatchedTest):
-        from .tests.overrides import EditEntity_UnderNestedInstance as test_module