Navigation
API > API/Plugins > API/Plugins/NetcodeUnitTest
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UCommandlet
- UUnitTestCommandlet
References
Module | NetcodeUnitTest |
Header | /Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Classes/UnitTestCommandlet.h |
Include | #include "UnitTestCommandlet.h" |
Syntax
UCLASS&40;&41;
class UUnitTestCommandlet : public UCommandlet
Remarks
A commandlet for running unit tests, without having to launch the game client. Uses a heavily stripped down game client, with allowances for Slate, and some hacks for enabling proper netcode usage.
Usage: "UnrealEditor.exe shootergame -run=NetcodeUnitTest.UnitTestCommandlet"
Parameters: -UnitTest=UnitTestName
- Launches only the specified unit test
-UnitTestNoAutoClose
- Sets the default option for the 'AutoClose' button to False
-UnitTestServerParms="CommandlineParameters"
- Adds additional commandline parameters to unit test server instances (useful for e.g. unsuppressing specific logs)
-UnitTestClientParms="CommandlineParameters"
- Adds additional commandline parameters to unit test client instances
-UnitTestClientDebug
- Launches unit test clients with a valid render interface (so you can interact with the client window), and a larger window
-UnitTestCap=x
- Caps the maximum number of unit tests that can run at the same time
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UUnitTestCommandlet
(
const FObjectInitializer& ObjectInitializer |
UUnitTestCommandlet |
Overridden from UCommandlet
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | CreateCustomEngine
(
const FString& Params |
Allows commandlets to override the default behavior and create a custom engine class for the commandlet. |
![]() ![]() |
int32 | Entry point for your commandlet |