Files
UnrealEngineUWP/Engine/Source/Programs/AutomationTool/Gauntlet/Unreal/Base/Gauntlet.UnrealTestEvent.cs
aurel cordonnier 1ee4eed9aa Merge from Release-Engine-Test @ 17666640 to UE5/Main
This represents UE4/Main @17638339 and Dev-PerfTest @17636504

[CL 17668579 by aurel cordonnier in ue5-main branch]
2021-09-29 17:45:16 -04:00

50 lines
1.2 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using System.Collections.Generic;
using System.Linq;
namespace Gauntlet
{
/// <summary>
/// Unreal-specific implementation of a TestEvent
/// </summary>
public class UnrealTestEvent : ITestEvent
{
/// <summary>
/// Level of severity that this event represents
/// </summary>
public EventSeverity Severity { get; protected set; }
// Title/Summary of event
public string Summary { get; protected set; }
// Event details
public IEnumerable<string> Details { get; protected set; }
// Callstack
public IEnumerable<string> Callstack { get; protected set; }
//True if this is an ensure (Gauntlet does not define a level for this, but we log differently).
public bool IsEnsure { get; protected set; }
// Constructor that requires all properties
public UnrealTestEvent(EventSeverity InSeverity, string InSummary, IEnumerable<string> InDetails, UnrealLog.CallstackMessage InCallstack = null)
{
Severity = InSeverity;
Summary = InSummary;
Details = InDetails.ToArray();
if (InCallstack != null)
{
IsEnsure = InCallstack.IsEnsure;
Callstack = InCallstack.Callstack;
}
else
{
IsEnsure = false;
Callstack = Enumerable.Empty<string>();
}
}
}
}