You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#jira UE-201152 #rb rob.huyett, sebastian.lewicki [CL 30428970 by chris constantinescu in ue5-main branch]
27 lines
867 B
C++
27 lines
867 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#if WITH_LOW_LEVEL_TESTS
|
|
|
|
#include "TestHarness.h"
|
|
|
|
#include <catch2/catch_active_test.hpp>
|
|
#include <string>
|
|
|
|
TEST_CASE("LowLevelTestsRunner::SelfTests::Skip")
|
|
{
|
|
SKIP("SKIP is expected to work all the time.");
|
|
FAIL("Test wasn't skipped.");
|
|
}
|
|
|
|
TEST_CASE("LowLevelTestsRunner::SelfTests::GetCurrentTestCaseInfo", "[SelfTests][GetCurrentTestCaseInfo]")
|
|
{
|
|
const std::string CurrentRunningTestName = Catch::getActiveTestName();
|
|
CHECK(CurrentRunningTestName.compare("LowLevelTestsRunner::SelfTests::GetCurrentTestCaseInfo") == 0);
|
|
|
|
// Tags are returned in alphabetical order
|
|
const std::string CurrentRunningTestTags = Catch::getActiveTestTags();
|
|
CHECK(CurrentRunningTestTags.find("[GetCurrentTestCaseInfo]") != std::string::npos);
|
|
CHECK(CurrentRunningTestTags.find("[SelfTests]") != std::string::npos);
|
|
}
|
|
|
|
#endif |