Логотип Ue Automation And Testing

Ue Automation And Testing

Спільнота
kevinpbuckley
ue-automation-and-testing

Write and run automated tests for Unreal Engine projects — simple/complex automation tests (IMPLEMENT_SIMPLE_AUTOMATION_TEST, IMPLEMENT_COMPLEX_AUTOMATION_TEST), BDD-style Spec tests (DEFINE_SPEC, BEGIN_DEFINE_SPEC, Describe/It/BeforeEach/AfterEach), functional in-level tests (AFunctionalTest), low-level tests (Catch2-based LLTs), latent/async commands, EAutomationTestFlags, FAutomationTestBase assertion API (TestTrue/TestEqual/TestNotNull/AddError), and running tests from the editor, CLI, or CI. Use when writing unit or integration tests for gameplay logic or systems, setting up headless CI test runs, verifying data/content, or catching regressions.

Огляд

Видавецьkevinpbuckley
Репозиторійunreal-engine-skills
Назва навичкиue-automation-and-testing
Зірки
89
Форки
9
Файли в пакеті
4
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 4

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: kevinpbuckley. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Ue Automation And Testing у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/kevinpbuckley/unreal-engine-skills/tree/master/skills/core/ue-automation-and-testing
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kevinpbuckley/unreal-engine-skills.git /tmp/unreal-engine-skills
mkdir -p .claude/skills
cp -r /tmp/unreal-engine-skills/skills/core/ue-automation-and-testing .claude/skills/ue-automation-and-testing
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Ue Automation And Testing в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Ue Automation And Testing, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Ue Automation And Testing не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Automation & testing

Unreal has a layered test ecosystem. Each layer trades world setup cost against richness:

LayerRunsBest for
Low-level tests (LLT)thin process, no editor/gamepure C++ module logic, fastest CI
Simple automation testeditor or commandletunit/feature tests, no world required
Complex automation testeditor or commandletsame code over many inputs (content stress)
Spec (DEFINE_SPEC)editor or commandletBDD-style behavior docs, latent/async scenarios
Functional test (AFunctionalTest)full world in a test levelgameplay integration, AI, abilities
Gauntletfull device sessionslarge-scale, perf, device/platform testing

When to use this skill

  • Writing C++ unit or integration tests for game systems (damage, inventory, save data).
  • Expressing multi-case behavior specs that should read like documentation.
  • Testing gameplay mechanics that require actors, physics, or a running world.
  • Running tests headless in CI on every commit.
  • Reaching devices or larger sessions via Gauntlet.

Mental model

Tests live outside UObject reflection — they are not Blueprints-visible. The FAutomationTestBase base class provides the assertion API (TestTrue, TestEqual, …) and is instantiated once as a global at startup. RunTest must return true; use the assertion methods rather than check/ensure so failures record cleanly instead of crashing.

EAutomationTestFlags controls two orthogonal dimensions: context (where the test can run: EditorContext, ClientContext, ServerContext, CommandletContext, ProgramContext) and filter (which CI bucket: SmokeFilter, EngineFilter, ProductFilter, PerfFilter, StressFilter). Every test must specify at least one context and one filter.

Simple automation test

cpp
// Private/Tests/DamageTest.cpp
#include "Misc/AutomationTest.h"

IMPLEMENT_SIMPLE_AUTOMATION_TEST(FDamageMathTest, "MyGame.Combat.DamageMath",
    EAutomationTestFlags::EditorContext | EAutomationTestFlags::EngineFilter)

bool FDamageMathTest::RunTest(const FString& Parameters)
{
    const float Result = ComputeDamage(100.f, 0.5f);
    TestEqual(TEXT("Half damage"), Result, 50.f);
    TestTrue(TEXT("Non-negative"), Result >= 0.f);
    return true;   // returning false also marks the test failed
}

Key rules:

  • Place tests in Private/Tests/ of the relevant module; name the file <ClassFilename>Test.cpp.
  • The dotted path string ("MyGame.Combat.DamageMath") is what the browser and command-line filter use.
  • Always combine a context flag and a filter flag with |.
  • Add "AutomationController" and "AutomationUtils" to PrivateDependencyModuleNames in your Build.cs if you need automation utilities.

Complex automation test

Complex tests run the same RunTest body over a set of inputs provided by GetTests. Use them for content stress (load all maps, compile all Blueprints):

cpp
IMPLEMENT_COMPLEX_AUTOMATION_TEST(FLoadAllMapsTest, "MyGame.Maps.LoadAll",
    EAutomationTestFlags::EditorContext | EAutomationTestFlags::ProductFilter)

void FLoadAllMapsTest::GetTests(TArray<FString>& OutBeautifiedNames,
                                TArray<FString>& OutTestCommands) const
{
    // populate OutBeautifiedNames and OutTestCommands in parallel
}

bool FLoadAllMapsTest::RunTest(const FString& Parameters)
{
    // Parameters is one entry from OutTestCommands
    return true;
}

Spec style (BDD)

Specs express behavior in Describe/It blocks with scoped BeforeEach/AfterEach setup. Each It becomes an independently runnable test. Use BEGIN_DEFINE_SPEC to add member variables; DEFINE_SPEC when the class body can stay empty.

cpp
BEGIN_DEFINE_SPEC(FInventorySpec, "MyGame.Inventory",
    EAutomationTestFlags::EditorContext | EAutomationTestFlags::ProductFilter)
    TSharedPtr<FInventorySystem> Inv;
END_DEFINE_SPEC(FInventorySpec)

void FInventorySpec::Define()
{
    BeforeEach([this]()
    {
        Inv = MakeShared<FInventorySystem>();
    });

    Describe("AddItem", [this]()
    {
        It("should increase count by one", [this]()
        {
            Inv->AddItem(TEXT("Sword"), 1);
            TestEqual(TEXT("Count"), Inv->GetCount(TEXT("Sword")), 1);
        });

        It("should reject a stack over the limit", [this]()
        {
            TestFalse(TEXT("Over limit"),
                Inv->AddItem(TEXT("Arrows"), 9999));
        });
    });

    AfterEach([this]() { Inv.Reset(); });
}
  • Name spec files <FeatureName>.spec.cpp — not *Test.cpp.
  • xDescribe / xIt disable a block without deleting it.
  • Use LatentIt / LatentBeforeEach when a test step spans multiple frames (passes a FDoneDelegate).
  • Pass EAsyncExecution::TaskGraph / ::ThreadPool to It / BeforeEach to control which thread each block runs on.

See references/spec-and-latent-commands.md for BeforeEach scoping, parameterized tests, async/latent patterns, and Redefine.

Functional tests (in a level)

AFunctionalTest is a UCLASS actor placed in a dedicated test map. The automation runner discovers it through the Functional Testing Editor plugin, starts each actor, and collects results.

Override the key virtual functions in a C++ child class:

cpp
// MyFunctionalTest.h
UCLASS()
class MYGAME_API AMyFunctionalTest : public AFunctionalTest
{
    GENERATED_BODY()
protected:
    virtual void PrepareTest() override;      // start async setup (streaming, server)
    virtual bool IsReady_Implementation();    // return false while still loading
    virtual void StartTest();                 // main test body
};
cpp
// MyFunctionalTest.cpp — inside StartTest:
void AMyFunctionalTest::StartTest()
{
    AMyActor* Target = Cast<AMyActor>(FindActorByTag(TEXT("Target")));
    AssertIsValid(Target, TEXT("Target actor found"));
    AssertTrue(Target->Health > 0.f, TEXT("Target is alive"));
    FinishTest(EFunctionalTestResult::Succeeded, TEXT("OK"));
}

Important:

  • FinishTest must be called or the test times out. Set TimeLimit in the actor's details to bound CI runs.
  • Use AssertTrue / AssertIsValid / AssertEqual_Float (the functional-test assert family from AFunctionalTest) rather than the FAutomationTestBase macros.
  • Register spawned actors with AddActorToDestroyOnTestEnd so cleanup is automatic.

See references/functional-tests.md for PrepareTest and IsReady patterns, Ground Truth Data, and Blueprint functional test setup.

Low-level tests (Catch2 / LLT)

LLTs compile a separate thin executable per module using Catch2 — no editor, no game framework — giving the fastest possible CI iteration for module-internal logic. They live in a Tests/ directory alongside the module and require a dedicated <Module>Tests.Target.cs build target. See the official doc and Developer/LowLevelTestsRunner/ for the runner harness.

cpp
#include "TestHarness.h"   // Developer/LowLevelTestsRunner/Public/TestHarness.h

TEST_CASE("MyModule / FormatFString / basic substitution", "[smoke]")
{
    FString Out = FString::Printf(TEXT("v=%d"), 42);
    CHECK(Out == TEXT("v=42"));
}

LLTs are the right choice when your logic has no UObject or world dependency and you want sub-second CI feedback. See references/low-level-tests.md for target setup and build invocation.

Assertion reference

FAutomationTestBase assertions (all record failures without stopping execution unless you return false or call UE_RETURN_ON_ERROR):

AssertionNotes
TestTrue(What, Expr)fails if Expr is false
TestFalse(What, Expr)fails if Expr is true
TestEqual(What, Actual, Expected)float/double overloads accept a Tolerance
TestNotNull(What, Ptr)fails if pointer is null
TestNull(What, Ptr)fails if pointer is non-null
TestValid(What, Value)TWeakObjectPtr / TOptional validity
AddError(Message)unconditional failure record
AddWarning(Message)non-failing annotation
UE_RETURN_ON_ERROR(Cond, Msg)record error and return false if condition fails

Running tests

Editor: Tools → Test Automation → Automation tab → select tests → Start Tests.

Command line / CI (headless):

UnrealEditor-Cmd.exe MyProject.uproject
  -ExecCmds="Automation RunTest MyGame.Combat;Quit"
  -unattended -nopause -nullrhi
  -ReportExportPath="TestResults/"

Flags:

  • -ExecCmds="Automation RunTest <filter>" — dotted prefix runs all tests under it.
  • -ExecCmds="Automation RunTest Group:MyGroup;Quit" — named test group (configured via AutomationTestGroup in DefaultEngine.ini).
  • -ReportExportPath — writes JSON + HTML for a report server.
  • -ResumeRunTest — resume an interrupted run from a saved JSON report.

Parse the exit code and log for pass/fail in your CI pipeline. A non-zero exit code indicates test failures when -unattended is set.

Gotchas

  • Missing both a context and a filter flag → the test never appears in the browser.
  • Using check/ensure instead of TestTrue/AddError → crashes the whole run instead of recording a failure.
  • Functional test with no timeout → CI hangs indefinitely.
  • Non-deterministic tests (frame timing, RNG, network) → flaky; seed or mock inputs.
  • Spec variable capture inside Describe — local variables captured by lambda go out of scope before the It runs; capture this and use member variables.
  • Test module depends on the editor — tests that need WITH_EDITOR types must be placed in an Editor-category module; don't put them in Runtime.
  • AddErrorS / AddWarningS — deprecated since 5.4; use AddError / AddWarning.
  • TestEqualInsensitive — deprecated since 5.5; use TestEqual (strings are case-insensitive by default now).

Version notes

  • EAutomationTestFlags_ApplicationContextMask is a convenience constant combining all context flags; commonly used in specs: EAutomationTestFlags::ProductFilter | EAutomationTestFlags_ApplicationContextMask.
  • Priority flags (CriticalPriority, HighPriority, etc.) were added in UE5; they are optional but useful for CI triage.
  • Low-level tests (Catch2-based LLTs) are the recommended direction for new pure-logic tests added since UE 5.0. The FAutomationTestBase stack remains the right choice for tests that need the engine or editor context.

References & source material

Engine source (UE 5.8):

  • Runtime/Core/Public/Misc/AutomationTest.h — EAutomationTestFlags:88, FAutomationTestBase:1594, RunTest:2653, TestEqual:1985, TestFalse:2367, TestNull:2530, TestTrue:2603, FAutomationSpecBase:2899, Describe:2757, BeforeEach:2821, It:2789, IAutomationLatentCommand:525, DEFINE_LATENT_AUTOMATION_COMMAND:3796, ADD_LATENT_AUTOMATION_COMMAND:4087, IMPLEMENT_SIMPLE_AUTOMATION_TEST:4297, DEFINE_SPEC:4339, BEGIN_DEFINE_SPEC:4346.
  • Developer/FunctionalTesting/Classes/FunctionalTest.h — AFunctionalTest:249, FinishTest:678, PrepareTest:777, IsReady_Implementation:814, AddError:659.
  • Developer/LowLevelTestsRunner/Public/TestHarness.h — Catch2 bridge/harness header.
  • Developer/CQTest/ — CQTest module (TEST, TEST_CLASS, ASSERT_THAT macros).

Official docs (UE 5.8):

Deep-dive references in this skill:

Related skills: ue-logging-and-assertions, ue-debugging-techniques.

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Ue Automation And Testing?

Write and run automated tests for Unreal Engine projects — simple/complex automation tests (IMPLEMENT_SIMPLE_AUTOMATION_TEST, IMPLEMENT_COMPLEX_AUTOMATION_TEST), BDD-style Spec tests (DEFINE_SPEC, BEGIN_DEFINE_SPEC, Describe/It/BeforeEach/AfterEach), functional in-level tests (AFunctionalTest), low-level tests (Catch2-based LLTs), latent/async commands, EAutomationTestFlags, FAutomationTestBase assertion API (TestTrue/TestEqual/TestNotNull/AddError), and running tests from the editor, CLI, or CI. Use when writing unit or integration tests for gameplay logic or systems, setting up headless C...

Навіщо використовувати Ue Automation And Testing у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Ue Automation And Testing — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Ue Automation And Testing у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/kevinpbuckley/unreal-engine-skills/tree/master/skills/core/ue-automation-and-testing. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Ue Automation And Testing?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Ue Automation And Testing?

Зі скількома забажаєте. У TypingMind ви можете використовувати Ue Automation And Testing із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Ue Automation And Testing?

На GitHub цю навичку публікує kevinpbuckley. Умови ліцензування дивіться в репозиторії. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі
Логотип affaan-m

Angular Developer

affaan-m
СпільнотаПопулярне

Генерує код Angular і надає рекомендації з архітектури. Використовуйте під час створення проєкту, компонентів або сервісів, а також для порад щодо реактивності (сигнали, linkedSignal, ресурси), форм, ін’єкції залежностей, маршрутизації, SSR, доступності (ARIA), анімації, стилізації (стилі компонентів, Tailwind CSS), тестування та найкращих практик створення інструментів CLI…

39.1K
261.1K
Інструкції
Відкрити
Логотип NousResearch

Anatomy

NousResearch
ОрганізаціяПопулярне

Explain an idea as an interactive isometric machine figure.

54.8K
252.8K
Файлів: 65
Відкрити
Логотип NousResearch

Auteur

NousResearch
ОрганізаціяПопулярне

Design and build cinematic, award-level web pages.

53.5K
250.4K
Файлів: 25
Відкрити
Логотип anthropics

Skill Creator

anthropics
ОрганізаціяПопулярне

Створюйте навички, змінюйте й покращуйте наявні навички та оцінюйте їхню ефективність. Використовуйте навичку, коли користувач хоче створити навичку з нуля, відредагувати чи оптимізувати наявну, запустити оцінювання для перевірки навички, порівняти…

21.8K
184K
Файлів: 16
Відкрити

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇