Widget Studio
UWidgetStudioEditorTestClass Class Reference

Test class to perform unit tests. More...

#include <WSEditorTestClass.h>

Inheritance diagram for UWidgetStudioEditorTestClass:

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...
 

Detailed Description

Test class to perform unit tests.

Member Function Documentation

◆ PerformAllTests()

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()

◆ TestRemoveWidgetStudioFromCookDirs()

bool UWidgetStudioEditorTestClass::TestRemoveWidgetStudioFromCookDirs ( )

Tests that RemoveWidgetStudioFromCookDirs() removes the entry from cook dirs if it exists.

Returns
true if pass, false if fail

◆ TestThemePreservedWhenNewCreated()

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.

Returns
true if pass, false if fail

◆ TestUpdateBorderRadius()

bool UWidgetStudioEditorTestClass::TestUpdateBorderRadius ( )

Tests that border radius is updated in WidgetStudioSettings (Editor module) when it is modified in the Runtime module.

Returns
true if pass, false if fail

◆ TestUpdateControlDimensions()

bool UWidgetStudioEditorTestClass::TestUpdateControlDimensions ( )

Tests that control dimensions is updated in WidgetStudioSettings (Editor module) when it is modified in the Runtime module.

Returns
true if pass, false if fail

◆ TestUpdateIconSet()

bool UWidgetStudioEditorTestClass::TestUpdateIconSet ( )

Tests that icon set is updated in WidgetStudioSettings (Editor module) when it is modified in the Runtime module.

Returns
true if pass, false if fail

◆ TestUpdateTheme()

bool UWidgetStudioEditorTestClass::TestUpdateTheme ( )

Tests that theme is updated in WidgetStudioSettings (Editor module) when it is modified in the Runtime module.

Returns
true if pass, false if fail

◆ TestUpdateTypography()

bool UWidgetStudioEditorTestClass::TestUpdateTypography ( )

Tests that typography is updated in WidgetStudioSettings (Editor module) when it is modified in the Runtime module.

Returns
true if pass, false if fail

◆ TestVerifyWidgetStudioInCookDirs()

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.

Returns
true if pass, false if fail

The documentation for this class was generated from the following files: