26 lines
770 B
C++
26 lines
770 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|||
|
|
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "CoreMinimal.h"
|
||
|
|
#include "Commandlets/Commandlet.h"
|
||
|
|
#include "RunLuaFrameworkTestsCommandlet.generated.h"
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Headless UE 5.8 + UnLua framework test runner commandlet.
|
||
|
|
* Boots a real ULuaGameInstance + UWorld + UnLua FLuaEnv and executes `tests.ue.run_ue_tests`.
|
||
|
|
*
|
||
|
|
* Usage:
|
||
|
|
* UnrealEditor-Cmd <Project.uproject> -run=RunLuaFrameworkTests -unattended -nop4 -nosplash -NullRHI
|
||
|
|
* (Optional: pass -UseLuaBundle to run tests directly from /Game/Generated/DA_LuaBundle)
|
||
|
|
*/
|
||
|
|
UCLASS()
|
||
|
|
class UNREALLUADEMOEDITOR_API URunLuaFrameworkTestsCommandlet : public UCommandlet
|
||
|
|
{
|
||
|
|
GENERATED_BODY()
|
||
|
|
|
||
|
|
public:
|
||
|
|
URunLuaFrameworkTestsCommandlet();
|
||
|
|
|
||
|
|
virtual int32 Main(const FString& Params) override;
|
||
|
|
};
|