EUnitTestResetStage

The different stages that unit tests can be reset to - a global/non-locally-customizable list, for now NOTE: Stages MUST be sequential! (e.g. ResetConnection implies ResetExecute, FullReset implies both ResetConnection and ResetExecute) NOTE: Apart from checking for 'None', all comparisons should be either <= or >=, to support potential enum additions

Windows
MacOS
Linux

References

Module

NetcodeUnitTest

Header

/Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Classes/UnitTest.h

Include

#include "UnitTest.h"

Syntax

enum EUnitTestResetStage
{
    None,
    FullReset,
    ResetConnection,
    ResetExecute,
}

Values

Name

Description

None

No reset stage

FullReset

Resets the entire unit test, allowing restart from the beginning

ResetConnection

For ClientUnitTest's, resets the net connection and minimal client - but not the server - allowing a restart from connecting

ResetExecute

Resets unit tests to the point prior to 'ExecuteUnitTest' - usually implemented individually per unit test

Remarks

The different stages that unit tests can be reset to - a global/non-locally-customizable list, for now NOTE: Stages MUST be sequential! (e.g. ResetConnection implies ResetExecute, FullReset implies both ResetConnection and ResetExecute) NOTE: Apart from checking for 'None', all comparisons should be either <= or >=, to support potential enum additions

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss