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.
o3de/Code/Framework/AzFramework/Tests
moraaar 9e0b8c564d
Fixed AzToolsFramework tests (#2887)
* Fixed AzToolsFramework unit tests.

Signed-off-by: moraaar <moraaar@amazon.com>

* Include missing header.

Signed-off-by: moraaar <moraaar@amazon.com>

* Using util's class to generate temp directory, instead of qt.

Signed-off-by: moraaar <moraaar@amazon.com>

* Added empty line

Signed-off-by: moraaar <moraaar@amazon.com>

* Fixed warning in MessageTest fixture that CacheProjectRootFolder was not set

Signed-off-by: moraaar <moraaar@amazon.com>

* Additional checks in CreateDefaultEditorEntity helper function.

Signed-off-by: moraaar <moraaar@amazon.com>

* Updated the AzToolsFrameworkTest logic to set the project cache path

The Project Cache Path and Project Path is set through the CommandLine functionality of the ComponentApplication.
This allows those Project Cache Path and Project Path to be set within the Settings Registry during the ComponentApplication constructor

Removed the explicitly calls to delete the temporary directory and fixed the ScopedTemporaryDirectory class to recursively delete the temporary directory

Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>

* Setup correctly @assets@ alias for PlatformAddressedAssetCatalogManagerTest and AssetSeedManagerTest fixtures.

- These 2 test fixtures need to manually set the @asset@ alias to not include the platform at the end (which it does by default), because they are looping over platforms in their setup.
- Also initializing pointers to nullptr, so if setup fail in the future the teardown doesn't crash trying to delete garbage.

Signed-off-by: moraaar <moraaar@amazon.com>

Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>
4 years ago
..
Mocks Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
Platform Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
Spawnable Fixed EntitySpawnTicket move constructor (#2832) 4 years ago
Utils Fixed AzToolsFramework tests (#2887) 4 years ago
Application.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
ArchiveCompressionTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
ArchiveTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
AssetCatalog.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
AssetProcessorConnection.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
BehaviorEntityTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
BinToTextEncode.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
CameraInputTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
CameraState.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
ClickDetectorTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
CursorStateTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
EntityContext.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
FileIO.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
FileTagTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
FrameworkApplicationFixture.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
GenAppDescriptors.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
InputTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
NativeWindow.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
OctreePerformanceTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
OctreeTests.cpp Code/Framework compiling 4 years ago
PlatformHelper.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
ProcessLaunchMain.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
ProcessLaunchParseTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
Scene.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
framework_shared_tests_files.cmake Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
frameworktests_files.cmake Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
process_launch_test_files.cmake Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago