Show / Hide Table of Contents

Class UnitTestCommandlet

A commandlet for running unit tests, without having to launch the game client.

Inheritance
System.Object
UObject
Commandlet
UnitTestCommandlet
Inherited Members
Commandlet.IsServer
Commandlet.IsClient
Commandlet.IsEditor
Commandlet.LogToConsole
Commandlet.ShowErrorCount
Commandlet.ShowProgress
UObject.TransientPackage
UObject.CastTo<T>(UObject)
UObject.CastTo(UObject, Type)
UObject.RemoveObject(UObject)
UObject.MakeObjectArrayField<T>(NativeArray*)
UObject.NotImplemented<T>()
UObject.Construct()
UObject.GetHashCode()
UObject.GetName()
UObject.ToString()
UObject.Name
UObject._None
UObject.None
UObject.ObjPointer
UObject.LoadObjectFromClass(Class, UObject, String, String, LoadFlags, PackageMap, Boolean)
UObject.LoadClass(Class, UObject, String, String, LoadFlags, PackageMap)
UObject.GetPropertyFor<T>(Name)
UObject.ExecuteUbergraph
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: UE4.NetcodeUnitTest
Assembly: UE4DotNet.dll
Syntax
public class UnitTestCommandlet : Commandlet
Remarks

Uses a heavily stripped down game client, with allowances for Slate, and some hacks for enabling proper netcode usage.

Usage: "UE4Editor.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

Properties

| Improve this Doc View Source

DefaultObject

Get UE4 Default Object for this Class

Declaration
public static UnitTestCommandlet DefaultObject { get; }
Property Value
Type Description
UnitTestCommandlet
| Improve this Doc View Source

StaticClass

Get UE4 Class

Declaration
public static Class StaticClass { get; }
Property Value
Type Description
Class

Methods

| Improve this Doc View Source

New(UObject, Name)

Spawn an object of this class

Declaration
public static UnitTestCommandlet New(UObject obj = null, Name name = default(Name))
Parameters
Type Name Description
UObject obj
Name name
Returns
Type Description
UnitTestCommandlet

Operators

| Improve this Doc View Source

Implicit(IntPtr to UnitTestCommandlet)

Convert from IntPtr to UObject

Declaration
public static implicit operator UnitTestCommandlet(IntPtr p)
Parameters
Type Name Description
System.IntPtr p
Returns
Type Description
UnitTestCommandlet
  • Improve this Doc
  • View Source
Back to top Generated by DocFX