UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TestHarnessAdapter.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
12#if WITH_LOW_LEVEL_TESTS
13#include "TestHarness.h" // HEADER_UNIT_IGNORE
14#elif defined(WITH_AUTOMATION_TESTS) || (WITH_DEV_AUTOMATION_TESTS || WITH_PERF_AUTOMATION_TESTS)
15#include "Misc/AutomationTest.h" // IWYU pragma: export
16#include "Misc/LowLevelTestAdapter.h" // IWYU pragma: export
17#endif
18
19#define CHECK_AND_SET_ERROR_ON_FAIL(What, Value, Error) do { \
20 Error = Error || (!(Value)); \
21 CHECK_MESSAGE(What, Value); \
22} while (false)