Test class to perform unit tests. More...
#include <WSEditorTestClass.h>
Public Member Functions | |
UWidgetStudioEditorTestClass () | |
Constructor - loads data assets to be used in tests. | |
void | PerformAllTests () |
Performs all cpp tests for the Editor module. More... | |
void | LogTestResult (FString TestName, bool bDidTestPass, bool bPlaceNewlineAfter) |
Logs pass/fail result of each test. | |
bool | TestVerifyWidgetStudioInCookDirs () |
Tests that VerifyWidgetStudioInCookDirs() adds the entry to cook dirs if it doesn't exist and skips adding the entry if it already exists. More... | |
bool | TestRemoveWidgetStudioFromCookDirs () |
Tests that RemoveWidgetStudioFromCookDirs() removes the entry from cook dirs if it exists. More... | |
bool | TestUpdateTheme () |
Tests that theme is updated in WidgetStudioSettings (Editor module) when it is modified in the Runtime module. More... | |
bool | TestUpdateIconSet () |
Tests that icon set is updated in WidgetStudioSettings (Editor module) when it is modified in the Runtime module. More... | |
bool | TestUpdateTypography () |
Tests that typography is updated in WidgetStudioSettings (Editor module) when it is modified in the Runtime module. More... | |
bool | TestUpdateBorderRadius () |
Tests that border radius is updated in WidgetStudioSettings (Editor module) when it is modified in the Runtime module. More... | |
bool | TestUpdateControlDimensions () |
Tests that control dimensions is updated in WidgetStudioSettings (Editor module) when it is modified in the Runtime module. More... | |
bool | TestThemePreservedWhenNewCreated () |
Verifies that current theme / style of WidgetStudio are preserved when a new theme is created, testing against former bug where WS Theme would automatically switch to newly created theme. More... | |
Test class to perform unit tests.
void UWidgetStudioEditorTestClass::PerformAllTests | ( | ) |
Performs all cpp tests for the Editor module.
Can be run from Editor python cmd with: import unreal EditorTestClass = unreal.WidgetStudioEditorTestClass() result = EditorTestClass.perform_all_tests()
bool UWidgetStudioEditorTestClass::TestRemoveWidgetStudioFromCookDirs | ( | ) |
Tests that RemoveWidgetStudioFromCookDirs() removes the entry from cook dirs if it exists.
bool UWidgetStudioEditorTestClass::TestThemePreservedWhenNewCreated | ( | ) |
Verifies that current theme / style of WidgetStudio are preserved when a new theme is created, testing against former bug where WS Theme would automatically switch to newly created theme.
bool UWidgetStudioEditorTestClass::TestUpdateBorderRadius | ( | ) |
Tests that border radius is updated in WidgetStudioSettings (Editor module) when it is modified in the Runtime module.
bool UWidgetStudioEditorTestClass::TestUpdateControlDimensions | ( | ) |
Tests that control dimensions is updated in WidgetStudioSettings (Editor module) when it is modified in the Runtime module.
bool UWidgetStudioEditorTestClass::TestUpdateIconSet | ( | ) |
Tests that icon set is updated in WidgetStudioSettings (Editor module) when it is modified in the Runtime module.
bool UWidgetStudioEditorTestClass::TestUpdateTheme | ( | ) |
Tests that theme is updated in WidgetStudioSettings (Editor module) when it is modified in the Runtime module.
bool UWidgetStudioEditorTestClass::TestUpdateTypography | ( | ) |
Tests that typography is updated in WidgetStudioSettings (Editor module) when it is modified in the Runtime module.
bool UWidgetStudioEditorTestClass::TestVerifyWidgetStudioInCookDirs | ( | ) |
Tests that VerifyWidgetStudioInCookDirs() adds the entry to cook dirs if it doesn't exist and skips adding the entry if it already exists.