You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#jira UE-74084 #rb none #fyi ben.marsh,max.chen [CL 6258941 by Andrew Grant in Main branch]
78 lines
1.5 KiB
C++
78 lines
1.5 KiB
C++
// Copyright 1998-2019 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)
|
|
: Contains(InContains), MatchFromStart(InMatchFromStart)
|
|
{
|
|
}
|
|
|
|
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;
|
|
};
|
|
|
|
/*
|
|
* 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 treat log errors as test errors (default=true) */
|
|
UPROPERTY(Config)
|
|
bool bTreatLogErrorsAsTestErrors;
|
|
|
|
/** Whether to treat log warnings as test errors (default=false) */
|
|
UPROPERTY(Config)
|
|
bool bTreatLogWarningsAsTestErrors;
|
|
};
|