You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
UAT: Add a new EditorTests runner, existing runner is derelict (will be deleted in upcoming merge from UE4) BuildGraph is project-agnostic, forked and modified from EngineTest's build graph. Follow up change will try to generalize this logic for future benefit. Requires specification on the cmdline of project content to use and platform to run on. Project content is specified in DefaultEngine.ini. EditorTest plugin and log error/warning handling is all handled on the command line to be unobtrusive to production uprojects EngineTest Plugin: Add new EditorIterationTests.cpp and a simple test object. This is copied from another test for now for the sake of iteration profiling having its own filter and automation behavior. AutomationController: bTreatLogErrorsAsTestErrors was specified in some ini files, but was bugged. Restore this likely deleted config variable and check it when scanning log results Reverb: Add Iteration test group EngineTest: Add Iteration test group #rb jerome.delattre, francis.hurteau #fyi andrew.grant [CL 14874020 by geoff evans in ue5-main branch]
94 lines
2.0 KiB
C++
94 lines
2.0 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)
|
|
: 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 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 errors as test errors (default=true) */
|
|
UPROPERTY(Config)
|
|
bool bTreatLogErrorsAsTestErrors;
|
|
|
|
/** Whether to treat log warnings as test errors (default=true) */
|
|
UPROPERTY(Config)
|
|
bool bTreatLogWarningsAsTestErrors;
|
|
|
|
/** 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;
|
|
};
|