You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
178 lines
9.7 KiB
Python
178 lines
9.7 KiB
Python
"""
|
|
Copyright (c) Contributors to the Open 3D Engine Project.
|
|
For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
|
|
|
SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
"""
|
|
|
|
import os
|
|
import pytest
|
|
|
|
import ly_test_tools.environment.file_system as file_system
|
|
from ly_test_tools.o3de.editor_test import EditorSingleTest, EditorSharedTest, EditorParallelTest, EditorTestSuite
|
|
|
|
|
|
@pytest.mark.SUITE_main
|
|
@pytest.mark.parametrize("launcher_platform", ['windows_editor'])
|
|
@pytest.mark.parametrize("project", ["AutomatedTesting"])
|
|
class TestAutomation(EditorTestSuite):
|
|
|
|
# Helpers for test asset cleanup
|
|
def cleanup_test_level(self, workspace):
|
|
file_system.delete([os.path.join(workspace.paths.engine_root(), "AutomatedTesting", "Levels", "tmp_level")],
|
|
True, True)
|
|
|
|
class test_AltitudeFilter_ComponentAndOverrides_InstancesPlantAtSpecifiedAltitude(EditorSharedTest):
|
|
from .EditorScripts import AltitudeFilter_ComponentAndOverrides_InstancesPlantAtSpecifiedAltitude as test_module
|
|
|
|
class test_AltitudeFilter_FilterStageToggle(EditorSharedTest):
|
|
from .EditorScripts import AltitudeFilter_FilterStageToggle as test_module
|
|
|
|
class test_AltitudeFilter_ShapeSample_InstancesPlantAtSpecifiedAltitude(EditorSharedTest):
|
|
from .EditorScripts import AltitudeFilter_ShapeSample_InstancesPlantAtSpecifiedAltitude as test_module
|
|
|
|
class test_AssetListCombiner_CombinedDescriptorsExpressInConfiguredArea(EditorSharedTest):
|
|
from .EditorScripts import AssetListCombiner_CombinedDescriptorsExpressInConfiguredArea as test_module
|
|
|
|
class test_AssetWeightSelector_InstancesExpressBasedOnWeight(EditorSharedTest):
|
|
from .EditorScripts import AssetWeightSelector_InstancesExpressBasedOnWeight as test_module
|
|
|
|
@pytest.mark.xfail(reason="https://github.com/o3de/o3de/issues/4155")
|
|
class test_DistanceBetweenFilter_InstancesPlantAtSpecifiedRadius(EditorSharedTest):
|
|
from .EditorScripts import DistanceBetweenFilter_InstancesPlantAtSpecifiedRadius as test_module
|
|
|
|
@pytest.mark.xfail(reason="https://github.com/o3de/o3de/issues/4155")
|
|
class test_DistanceBetweenFilterOverrides_InstancesPlantAtSpecifiedRadius(EditorSharedTest):
|
|
from .EditorScripts import DistanceBetweenFilterOverrides_InstancesPlantAtSpecifiedRadius as test_module
|
|
|
|
class test_DynamicSliceInstanceSpawner_DynamicSliceSpawnerWorks(EditorSharedTest):
|
|
from .EditorScripts import DynamicSliceInstanceSpawner_DynamicSliceSpawnerWorks as test_module
|
|
|
|
class test_EmptyInstanceSpawner_EmptySpawnerWorks(EditorSharedTest):
|
|
from .EditorScripts import EmptyInstanceSpawner_EmptySpawnerWorks as test_module
|
|
|
|
class test_InstanceSpawnerPriority_LayerAndSubPriority_HigherValuesPlantOverLower(EditorSharedTest):
|
|
from .EditorScripts import InstanceSpawnerPriority_LayerAndSubPriority as test_module
|
|
|
|
class test_LayerBlender_E2E_Editor(EditorSingleTest):
|
|
from .EditorScripts import LayerBlender_E2E_Editor as test_module
|
|
|
|
# Custom setup/teardown to remove test level created during test
|
|
def setup(self, request, workspace, editor, editor_test_results, launcher_platform):
|
|
TestAutomation.cleanup_test_level(self, workspace)
|
|
|
|
def teardown(self, request, workspace, editor, editor_test_results, launcher_platform):
|
|
TestAutomation.cleanup_test_level(self, workspace)
|
|
|
|
class test_LayerBlocker_InstancesBlockedInConfiguredArea(EditorSharedTest):
|
|
from .EditorScripts import LayerBlocker_InstancesBlockedInConfiguredArea as test_module
|
|
|
|
class test_LayerSpawner_FilterStageToggle(EditorSharedTest):
|
|
from .EditorScripts import LayerSpawner_FilterStageToggle as test_module
|
|
|
|
class test_LayerSpawner_InheritBehaviorFlag(EditorSharedTest):
|
|
from .EditorScripts import LayerSpawner_InheritBehaviorFlag as test_module
|
|
|
|
class test_LayerSpawner_InstancesPlantInAllSupportedShapes(EditorSharedTest):
|
|
from .EditorScripts import LayerSpawner_InstancesPlantInAllSupportedShapes as test_module
|
|
|
|
@pytest.mark.xfail(reason="https://github.com/o3de/o3de/issues/6549")
|
|
class test_LayerSpawner_InstancesRefreshUsingCorrectViewportCamera(EditorSharedTest):
|
|
from .EditorScripts import LayerSpawner_InstancesRefreshUsingCorrectViewportCamera as test_module
|
|
|
|
class test_MeshBlocker_InstancesBlockedByMesh(EditorSharedTest):
|
|
from .EditorScripts import MeshBlocker_InstancesBlockedByMesh as test_module
|
|
|
|
class test_MeshBlocker_InstancesBlockedByMeshHeightTuning(EditorSharedTest):
|
|
from .EditorScripts import MeshBlocker_InstancesBlockedByMeshHeightTuning as test_module
|
|
|
|
class test_MeshSurfaceTagEmitter_DependentOnMeshComponent(EditorSharedTest):
|
|
from .EditorScripts import MeshSurfaceTagEmitter_DependentOnMeshComponent as test_module
|
|
|
|
class test_MeshSurfaceTagEmitter_SurfaceTagsAddRemoveSuccessfully(EditorSharedTest):
|
|
from .EditorScripts import MeshSurfaceTagEmitter_SurfaceTagsAddRemoveSuccessfully as test_module
|
|
|
|
class test_PhysXColliderSurfaceTagEmitter_E2E_Editor(EditorSharedTest):
|
|
from .EditorScripts import PhysXColliderSurfaceTagEmitter_E2E_Editor as test_module
|
|
|
|
class test_PositionModifier_AutoSnapToSurfaceWorks(EditorSharedTest):
|
|
from .EditorScripts import PositionModifier_AutoSnapToSurfaceWorks as test_module
|
|
|
|
class test_PositionModifier_ComponentAndOverrides_InstancesPlantAtSpecifiedOffsets(EditorSharedTest):
|
|
from .EditorScripts import \
|
|
PositionModifier_ComponentAndOverrides_InstancesPlantAtSpecifiedOffsets as test_module
|
|
|
|
class test_PrefabInstanceSpawner_Embedded_E2E_Editor(EditorSingleTest):
|
|
from .EditorScripts import PrefabInstanceSpawner_Embedded_E2E as test_module
|
|
|
|
# Custom setup/teardown to remove test level created during test
|
|
def setup(self, request, workspace, editor, editor_test_results, launcher_platform):
|
|
TestAutomation.cleanup_test_level(self, workspace)
|
|
|
|
def teardown(self, request, workspace, editor, editor_test_results, launcher_platform):
|
|
TestAutomation.cleanup_test_level(self, workspace)
|
|
|
|
class test_PrefabInstanceSpawner_External_E2E_Editor(EditorSingleTest):
|
|
from .EditorScripts import PrefabInstanceSpawner_External_E2E as test_module
|
|
|
|
# Custom setup/teardown to remove test level created during test
|
|
def setup(self, request, workspace, editor, editor_test_results, launcher_platform):
|
|
TestAutomation.cleanup_test_level(self, workspace)
|
|
|
|
def teardown(self, request, workspace, editor, editor_test_results, launcher_platform):
|
|
TestAutomation.cleanup_test_level(self, workspace)
|
|
|
|
class test_RotationModifier_InstancesRotateWithinRange(EditorSharedTest):
|
|
from .EditorScripts import RotationModifier_InstancesRotateWithinRange as test_module
|
|
|
|
class test_RotationModifierOverrides_InstancesRotateWithinRange(EditorSharedTest):
|
|
from .EditorScripts import RotationModifierOverrides_InstancesRotateWithinRange as test_module
|
|
|
|
class test_ScaleModifier_InstancesProperlyScale(EditorSharedTest):
|
|
from .EditorScripts import ScaleModifier_InstancesProperlyScale as test_module
|
|
|
|
class test_ScaleModifierOverrides_InstancesProperlyScale(EditorSharedTest):
|
|
from .EditorScripts import ScaleModifierOverrides_InstancesProperlyScale as test_module
|
|
|
|
class test_ShapeIntersectionFilter_FilterStageToggle(EditorSharedTest):
|
|
from .EditorScripts import ShapeIntersectionFilter_FilterStageToggle as test_module
|
|
|
|
class test_ShapeIntersectionFilter_InstancesPlantInAssignedShape(EditorSharedTest):
|
|
from .EditorScripts import ShapeIntersectionFilter_InstancesPlantInAssignedShape as test_module
|
|
|
|
class test_SlopeAlignmentModifier_InstanceSurfaceAlignment(EditorSharedTest):
|
|
from .EditorScripts import SlopeAlignmentModifier_InstanceSurfaceAlignment as test_module
|
|
|
|
class test_SlopeAlignmentModifierOverrides_InstanceSurfaceAlignment(EditorSharedTest):
|
|
from .EditorScripts import SlopeAlignmentModifierOverrides_InstanceSurfaceAlignment as test_module
|
|
|
|
class test_SlopeFilter_ComponentAndOverrides_InstancesPlantOnValidSlopes(EditorSharedTest):
|
|
from .EditorScripts import SlopeFilter_ComponentAndOverrides_InstancesPlantOnValidSlope as test_module
|
|
|
|
class test_SpawnerPrefabs_PrefabCreationAndVisibilityToggleWorks(EditorSharedTest):
|
|
from .EditorScripts import SpawnerPrefabs_PrefabCreationAndVisibilityToggleWorks as test_module
|
|
|
|
class test_SurfaceDataRefreshes_RemainsStable(EditorSharedTest):
|
|
from .EditorScripts import SurfaceDataRefreshes_RemainsStable as test_module
|
|
|
|
class test_SurfaceMaskFilter_BasicSurfaceTagCreation(EditorSharedTest):
|
|
from .EditorScripts import SurfaceMaskFilter_BasicSurfaceTagCreation as test_module
|
|
|
|
class test_SurfaceMaskFilter_ExclusiveSurfaceTags_Function(EditorSharedTest):
|
|
from .EditorScripts import SurfaceMaskFilter_ExclusionList as test_module
|
|
|
|
class test_SurfaceMaskFilter_InclusiveSurfaceTags_Function(EditorSharedTest):
|
|
from .EditorScripts import SurfaceMaskFilter_InclusionList as test_module
|
|
|
|
class test_SurfaceMaskFilterOverrides_MultipleDescriptorOverridesPlantAsExpected(EditorSharedTest):
|
|
from .EditorScripts import SurfaceMaskFilterOverrides_MultipleDescriptorOverridesPlantAsExpected as test_module
|
|
|
|
class test_SystemSettings_SectorPointDensity(EditorSharedTest):
|
|
from .EditorScripts import SystemSettings_SectorPointDensity as test_module
|
|
|
|
class test_SystemSettings_SectorSize(EditorSharedTest):
|
|
from .EditorScripts import SystemSettings_SectorSize as test_module
|
|
|
|
class test_VegetationInstances_DespawnWhenOutOfRange(EditorSharedTest):
|
|
from .EditorScripts import VegetationInstances_DespawnWhenOutOfRange as test_module
|