You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Introduce bElevateLogWarningsToErrors as a good name for existing functionality. Note it's assuming the name as it's known by its customer code. This change lines up the settings variable to its colloquial name around the codebase. Deprecate bTreatLogWarningsAsTestErrors as it was misleading because it doesn't really shuffle log warnings into the test errors bucket as much as it just reclassifies the log verbosity from log warning to log error. Remove bTreatLogErrorsAsTestErrors as it wasn't functional outside of EditorIterationTest's custom base class, and it's tempting to use incorrectly in place of bSuppressLogErrors #rnx #jira none #rb andrew.grant #preflight 6142442c4778fa000135b987 #ROBOMERGE-AUTHOR: geoff.evans #ROBOMERGE-SOURCE: CL 17526549 in //UE5/Main/... #ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v870-17433530) [CL 17526590 by geoff evans in ue5-release-engine-test branch]
110 lines
2.6 KiB
C++
110 lines
2.6 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "UObject/Object.h"
|
|
#include "UObject/SoftObjectPath.h"
|
|
#include "AutomationControllerSettings.generated.h"
|
|
|
|
/*
|
|
* Describes a filter for a test group.
|
|
*/
|
|
USTRUCT()
|
|
struct FAutomatedTestFilter
|
|
{
|
|
GENERATED_USTRUCT_BODY()
|
|
|
|
public:
|
|
|
|
FAutomatedTestFilter(FString InContains, bool InMatchFromStart = false, bool InMatchFromEnd = false)
|
|
: Contains(InContains), MatchFromStart(InMatchFromStart), MatchFromEnd(InMatchFromEnd)
|
|
{
|
|
}
|
|
|
|
FAutomatedTestFilter() : FAutomatedTestFilter(TEXT("")) {}
|
|
|
|
/** String that the test must contain */
|
|
UPROPERTY(Config)
|
|
FString Contains;
|
|
|
|
/** If true start matching from the start of the string, else anywhere */
|
|
UPROPERTY(Config)
|
|
bool MatchFromStart;
|
|
|
|
/** If true start matching from the end of the string, else anywhere */
|
|
UPROPERTY(Config)
|
|
bool MatchFromEnd;
|
|
};
|
|
|
|
/*
|
|
* Describes a group of tests. Each group has a name and a set of filters that determine group membership
|
|
*/
|
|
USTRUCT()
|
|
struct FAutomatedTestGroup
|
|
{
|
|
GENERATED_USTRUCT_BODY()
|
|
|
|
public:
|
|
|
|
UPROPERTY(Config)
|
|
FString Name;
|
|
|
|
UPROPERTY(Config)
|
|
TArray<FAutomatedTestFilter> Filters;
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* Implements the Editor's user settings.
|
|
*/
|
|
UCLASS(config = Engine, defaultconfig)
|
|
class AUTOMATIONCONTROLLER_API UAutomationControllerSettings : public UObject
|
|
{
|
|
GENERATED_UCLASS_BODY()
|
|
|
|
public:
|
|
|
|
/** List of user-defined test groups */
|
|
UPROPERTY(Config)
|
|
TArray<FAutomatedTestGroup> Groups;
|
|
|
|
/** Whether to suppress log from test results (default=false) */
|
|
UPROPERTY(Config)
|
|
bool bSuppressLogErrors;
|
|
|
|
/** Whether to suppress log warnings from test results (default=false) */
|
|
UPROPERTY(Config)
|
|
bool bSuppressLogWarnings;
|
|
|
|
/** Whether to treat log warnings as log errors (default=true) */
|
|
UPROPERTY(Config)
|
|
bool bElevateLogWarningsToErrors;
|
|
|
|
private:
|
|
/** Whether to treat log warnings as test errors (default=true) */
|
|
UPROPERTY(Config, Meta = (DeprecatedProperty, DeprecationMessage = "Use bElevateLogWarningsToErrors instead."))
|
|
bool bTreatLogWarningsAsTestErrors;
|
|
|
|
public:
|
|
/** How long to wait between test updates (default=1sec)*/
|
|
UPROPERTY(Config)
|
|
float CheckTestIntervalSeconds;
|
|
|
|
/** The maximum response wait time for detecting a lost game instance (default=300sec)*/
|
|
UPROPERTY(Config)
|
|
float GameInstanceLostTimerSeconds;
|
|
|
|
/** Path to where telemetry files are saved (default=<project>/Saved/Automation/Telemetry/)*/
|
|
UPROPERTY(Config)
|
|
FString TelemetryDirectory;
|
|
|
|
/** Whether to reset data stored in telemetry file (default=false) */
|
|
UPROPERTY(Config)
|
|
bool bResetTelemetryStorageOnNewSession;
|
|
|
|
virtual void PostInitProperties() override;
|
|
};
|