UUnitTest::ResetUnitTest

Resets the unit test to its initial state, allowing it to restart from scratch

Windows
MacOS
Linux

References

Module

NetcodeUnitTest

Header

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

Include

#include "UnitTest.h"

Source

/Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Private/UnitTest.cpp

Syntax

void ResetUnitTest
(
    EUnitTestResetStage ResetStage
)

Remarks

Resets the unit test to its initial state, allowing it to restart from scratch

Must be implemented for every unit test that intends to support it, through CleanupUnitTest

Parameters

Parameter

Description

ResetStage

If specified, only partially resets the unit test state, to allow replaying only a portion of the unit test

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