2
0

TestSuite_Sandbox.py 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. """
  2. Copyright (c) Contributors to the Open 3D Engine Project.
  3. For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. SPDX-License-Identifier: Apache-2.0 OR MIT
  5. """
  6. import pytest
  7. import os
  8. import sys
  9. from .utils.FileManagement import FileManagement as fm
  10. from ly_test_tools.o3de.editor_test import EditorSingleTest, EditorBatchedTest, EditorTestSuite
  11. sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/../automatedtesting_shared')
  12. revert_physics_config = fm.file_revert_list(['physxdebugconfiguration.setreg', 'physxdefaultsceneconfiguration.setreg', 'physxsystemconfiguration.setreg'], 'AutomatedTesting/Registry')
  13. @pytest.mark.SUITE_main
  14. @pytest.mark.parametrize("launcher_platform", ['windows_editor'])
  15. @pytest.mark.parametrize("project", ["AutomatedTesting"])
  16. class EditorTestAutomation(EditorTestSuite):
  17. global_extra_cmdline_args = ['-BatchMode', '-autotest_mode']
  18. @staticmethod
  19. def get_number_parallel_editors():
  20. return 16
  21. class ShapeCollider_CylinderShapeCollides(EditorBatchedTest):
  22. from .tests.shape_collider import ShapeCollider_CylinderShapeCollides as test_module
  23. class Collider_SphereShapeEditing(EditorBatchedTest):
  24. from .tests.collider import Collider_SphereShapeEditing as test_module
  25. class Collider_PxMeshAutoAssignedWhenAddingRenderMeshComponent(EditorBatchedTest):
  26. from .tests.collider import Collider_PxMeshAutoAssignedWhenAddingRenderMeshComponent as test_module
  27. class Collider_PxMeshConvexMeshCollides(EditorBatchedTest):
  28. from .tests.collider import Collider_PxMeshConvexMeshCollides as test_module
  29. class ShapeCollider_CanBeAddedWitNoWarnings(EditorBatchedTest):
  30. from .tests.shape_collider import ShapeCollider_CanBeAddedWitNoWarnings as test_module
  31. class ShapeCollider_InactiveWhenNoShapeComponent(EditorBatchedTest):
  32. from .tests.shape_collider import ShapeCollider_InactiveWhenNoShapeComponent as test_module
  33. class ShapeCollider_LargeNumberOfShapeCollidersWontCrashEditor(EditorBatchedTest):
  34. from .tests.shape_collider import ShapeCollider_LargeNumberOfShapeCollidersWontCrashEditor as test_module