Features

Write it. Run it.Debug it. Measure it.

The whole loop of gameplay testing in one framework: TypeScript tests that drive abilities, AI, input, UI and multiplayer; a runner in the editor and in CI; failures you scrub frame by frame; and performance budgets and coverage you can hold a build to.

Scrub through a failing test
80+
Unreal-aware matchers, each validated to pass and to fail
GAS · AI · UI
abilities, effects, tags, behavior trees, StateTrees, UMG and HUDs
Editor + CI
in Play-In-Editor, or packaged builds in your pipeline
Multiplayer
a server and clients in one test, with lag and packet loss
01

Write

Tests that read like the game design, in a language your whole team can review.

Playwright for Unreal

No sleeps. No latent commands.

If you know Playwright, you already know Specter. Locators find actors, widgets and components; matchers know Unreal and retry until the game gets there, so tests stay fast and stable.

Engine-aware matchers. Tags, effects, attributes with their instigator, AI states, movement, materials, widgets and more.

expectAll(). Check every target of an area ability at once, and see which ones failed in a matrix.

Game object models and typed Blueprints. Generate TypeScript types from your Blueprints for autocomplete on functions and properties.

Assertions in the docs
boss.spec.tsAUTO-RETRYING
import { test, expect } from '@specter-automation/test';

test('the boss slam damages heroes in range', async ({ world }) => {
  const boss = world.actor('BP_Boss');
  const hero = await world.spawnActor('BP_Hero', { location: { x: 300, y: 0, z: 100 } });

  // No waits or sleeps: every matcher retries until the game gets there
  await expect(boss).toBeInState('Slam');
  await expect(hero).toHaveAttributeChange('HealthSet', 'Health', { delta: -250, instigator: boss });
  await expect(world.getByTestId('BossHealthBar')).toBeVisible();
});
charge.spec.tsGAS
import { test, expect, expectAll } from '@specter-automation/test';

test('charge stuns and knocks back every enemy it hits', async ({ world }) => {
  const hero = world.actor('BP_Hero_Knight');
  const enemies = await Promise.all([0, 1, 2].map(i =>
    world.spawnActor('BP_Minion', { location: { x: 400, y: i * 150 - 150, z: 100 } })));

  await hero.triggerAbilityByTag('Ability.Slot.Q');

  await expect(hero).toHaveActivatedAbility('Ability.Slot.Q', { times: 1 });
  await expectAll(enemies.flatMap(enemy => [
    expect(enemy).toHaveGameplayTag('Status.Stunned'),
    expect(enemy).toHaveAppliedGameplayEffect('GE_Charge_Damage', { instigator: hero }),
  ]));
});
Deep engine hooks

Built for how Unreal games are made.

Specter runs inside your game as a plugin, so it reads real engine state instead of pixels.

Gameplay Ability SystemBehavior TreesStateTreeEnhanced InputUMG & CommonUICanvas HUDsMaterialsNiagaraAudioPhysicsCamerasTeamsLevel streamingSequencer
Input like a player

Keys, sticks and combos, frame-accurate.

Drive Enhanced Input actions with analog values, hold keys until a condition is met, and script stick movement as curves, on one client or several at once.

Hold until. Hold W until the player reaches the door; Specter releases it for you.

Sequences. Combos, stick circles and parametric curves with SpecterInputSequence.

movement.spec.tsENHANCED INPUT
import { test, SpecterInputSequence } from '@specter-automation/test';

test('three clients drive three movement patterns at once', async ({ world, client2, client3 }) => {
  const players = [world, client2, client3].map(w => w.actor('BP_Hero').locallyControlled());

  // A figure eight on the left stick, sampled at 30 Hz for 4 s
  const figureEight = new SpecterInputSequence().addParametricCurve(progress => {
    const theta = progress * Math.PI * 4;
    return { actions: { IA_Move: { x: Math.sin(theta), y: Math.sin(theta) * Math.cos(theta) } } };
  }, 0, 4000, 30);

  await Promise.all(players.map(player => player.playSequence(figureEight)));
});
02

Run

In the editor while you work, and in CI on every pull request.

The runner's test tree and steps
The runner's timeline
In-editor test runner

Run a test without leaving the editor.

Run anything. A test, a group, a file, a folder, or everything that failed. Rows add up their results and times.

Live progress. Steps tick as they run, with what's running and queued in the bar.

A summary when it ends, with a Rerun failed button.

Jump to code. Click a failing step to open the line in VS Code.

Running tests
Continuous integration

Failures land on the pull request.

Build, package and test your game on your own build machines. Each failed test shows up in the run summary and on the pull request, with the frame it failed on, and its full trace opens in the editor exactly as if it had run there.

Packaged builds. Test the game your players get, not just Play-In-Editor.

Portable traces. Download a CI failure and scrub it locally, timeline and preview included.

Running in CI
A GitHub Actions run summary from Specter: 1 of 272 tests failed. The failed test's name and line, the game frame it failed on, and the error with the code around it
multiplayer-replication.spec.ts
import { test, expect } from '@specter-automation/test';

test('damage and the health bar replicate to the client', async ({ server, client }) => {
  // ... setup collapsed: spawn both heroes, possess one on the client, check full health

  await Promise.all([
    // Server authority
    expect(knightActor).toHaveAttributeValue('HealthSet', 'Health', maxHp - damage),
    // The client's replicated copy
    expect(knightActor.client(client.world)).toHaveAttributeValue('HealthSet', 'Health', maxHp - damage),
    // The health bar material on both
    expect(healthBar).toHaveMaterialScalarParameter('Percent', (maxHp - damage) / maxHp, { tolerance: 0.05 }),
    expect(healthBar.client(client.world)).toHaveMaterialScalarParameter('Percent', (maxHp - damage) / maxHp, { tolerance: 0.05 }),
    // The attack, fired from the client
    clientGunner.triggerAbilityWithTarget(server.heroes.gunner.abilityBasicAttackSingleShot, knightActor),
  ]);
});
Multiplayer

A server and its clients, in one test.

Check what the server decided and what every client sees, with the network as bad as you like.

Possess across instances. Play a hero on a client while the server player plays another.

Replication checks. The same locator on the server and on each client, in one expectAll.

Network emulation. Latency, jitter and packet loss, set from the test.

03

Debug

Every failure arrives with the evidence: what happened, when, and what the game looked like.

A test just failed

Here's what you see.

Every step, every ability, effect, tag, attribute and AI decision, on one timeline, with pictures of the game at each moment. Move along the timeline to see the game then. The answer here: the slam's effect never grants the stun tag.

boss-camp.spec.ts › the boss stuns a hero it slams
Preview
0.00s
1.00s
2.00s
3.00s
4.00s
Test steps
spawnActor('BP_Hero')
preview.follow
expect(boss).toBeInState('Slam')
toHaveAttributeChange('Health', -250)
expect(hero).toHaveGameplayTag('Status.Stunned')
BP_Boss_C_0
4Target · Combat › Slam · GA_Boss_Slam · +Status.Boss.Slamming
2−Status.Boss.Slamming · Combat › Attack
Attributes
Health 1000.0 → 750.0
Abilities
GE Applied [GE_SlamDamage]
Tags
Failures 0
0.000 s
Filter events9 eventsAIAbilityAttributeTagFailure

Select an event, or move along the timeline.

Hover the tracks to preview · click or drag to move the playhead · ← → to step · click an event to jump to itPreview frames as Specter recorded them · a mock of the in-engine runner
Timeline preview

A camera that follows the action.

While a test runs, Specter records the game with cameras of its own. They frame what the test spawns, sends commands to, and the AIs whose behavior changes. When the action is in several places, the picture splits into a view for each.

Recorded on the GPU, in the background, so tests aren't slowed down.

Steerable. world.preview.follow([boss, hero]), a fixed spot, or the player's view.

Your character through your camera, including first person.

Timeline preview
AI debugging

Know why the AI did that.

Specter records every AI's behavior tree path, StateTree states and blackboard changes from the start of each test. Assert on states it passed through, even for a single frame, and read the trail when a check fails.

toBeInState, toHaveVisitedState, toHaveBlackboardChange, and pursuit checks like toBeMovingTowards.

On the timeline, as their own markers next to tags and attributes.

AI debugging
Failure message
Expected AI to be in state 'Attack'.
Active states: Root › Combat › Chase

BP_Minion_C_3's StateTree ST_Minion, its last 3 changes:
     0.00s  ▸ Root › Advance
     2.41s  TargetActor: None → BP_Minion_Enemy_C_0
     2.42s  ▸ Root › Combat › Chase
Now (8.02s): Root › Combat › Chase
Asking the engine
> await guard.aiPerceives(intruder)
Something's in the way: Blocked on AISight 412 along (of 900)
by BP_LootZone_C_0's TriggerSphere (SphereComponent,
collision profile OverlapAllDynamic, object type WorldDynamic).

> await minion.getNavPath(enemyBase)
Partial path: it ends 640 short of the goal (3310 long).

> the failure report
🚧 AI that stood still while moving:
   • BP_Minion_C_4: moving to (4000, 0) but at (2180, 35) for 3.5s
⚠️ Engine warnings and errors since the last test:
   [2.9s] Error LogScript: Accessed None trying to read TargetActor (×12)
Debugging tools

Find the cause outside your logic.

Plenty of gameplay bugs are a trigger that blocks a sight channel, a gap in the navmesh, or a Blueprint error three seconds earlier. Ask the engine from the test, and get the answer in a sentence.

aiPerceives, traceTo, getNavPath, collision responses and overlaps, with channels by name.

Engine warnings and stuck AIs in every failure report, and the actors' state history saved with each test.

Clean between tests: what the game spawned during a test goes with it.

Debugging tools
The runner's check matrix: three minions down, three checks across. Minion 1 is the only red row: not stunned, not knocked back, and its health went from 1100 to 1050 instead of 1000
Every target, every check

See which enemies resisted.

A charge hits three minions, and one of them is Unstoppable. expectAll checks every minion at once, and the runner lays the results out as a matrix: targets down, checks across, with the value each one actually had.

04

Measure

Performance budgets and coverage you can hold a build to.

Performance testing

Every frame, and why the slow ones were slow.

Measure any action: frame-time percentiles, 1% lows, game, render and GPU time, draw calls and memory. Each hitch comes with what happened around it: garbage collection, level streaming, the ability that fired.

Performance testing
minion-waves.spec.tsEVERY FRAME
const perf = await world.measurePerformance(async () => {
  await spawnWave(world, 40);
  await world.waitForTimeout(5000);
}, { name: 'Minion wave' });

await expect(perf).toHaveFrameTimeP95Below(16.7);
await expect(perf).toHaveNoHitchesOver(50);
The runner's performance panel for 10 minion waves: average, p95 and p99 frame times, thread and GPU times and memory, a frame-time graph with each hitch marked, and the slowest frames listed with what happened in them
The Gameplay coverage window: 54% of the game covered (184 of 338 things) from the latest run of 291 tests, broken down into abilities, effects, attributes, widgets, actors and maps, with each gameplay effect listed by how tests checked it
Gameplay coverage

Find the abilities no test touches.

Code coverage says little about a game. Specter reports which abilities, effects, attributes, widgets, actors and maps your tests drove or checked, which only ran along the way, and which no test reached at all.

Exportable report, a single HTML page you can share or archive per build.

Built for AI agents too

Your agent can write, run and debug tests in the editor.

Specter ships an editor toolset for coding agents: run tests through the runner, read each test's steps, failures, performance captures and screenshots, look at the timeline preview and where every actor was at any moment, and probe the running game with Specter's commands without writing a test. An agent can implement a feature, recompile, test it and fix it, without anyone reloading the editor.

Next to Unreal's automation framework

The same check, written both ways.

ChargeSpec.cppAUTOMATION SPEC
BEGIN_DEFINE_SPEC(FChargeSpec, "Game.Combat.Charge",
    EAutomationTestFlags::EditorContext | EAutomationTestFlags::ProductFilter)
END_DEFINE_SPEC(FChargeSpec)

void FChargeSpec::Define()
{
    LatentIt("charge damages and stuns enemies", [this](const FDoneDelegate& Done)
    {
        // Find the play-in-editor world
        UWorld* World = nullptr;
        for (const FWorldContext& Context : GEngine->GetWorldContexts())
        {
            if (Context.WorldType == EWorldType::PIE) { World = Context.World(); }
        }

        // Load the Blueprints and spawn the hero and an enemy
        UClass* HeroClass = LoadClass<ACharacter>(nullptr,
            TEXT("/Game/Heroes/Knight/BP_Hero_Knight.BP_Hero_Knight_C"));
        UClass* EnemyClass = LoadClass<ACharacter>(nullptr,
            TEXT("/Game/Units/BP_Minion.BP_Minion_C"));
        ACharacter* Hero = World->SpawnActor<ACharacter>(HeroClass, FVector(0, 0, 100), FRotator::ZeroRotator);
        ACharacter* Enemy = World->SpawnActor<ACharacter>(EnemyClass, FVector(400, 0, 100), FRotator::ZeroRotator);
        CastChecked<AMinionCharacter>(Enemy)->InitialTeamId = 2;

        // Each one's ability system, and the enemy's health before
        UAbilitySystemComponent* HeroASC = UAbilitySystemGlobals::GetAbilitySystemComponentFromActor(Hero);
        UAbilitySystemComponent* EnemyASC = UAbilitySystemGlobals::GetAbilitySystemComponentFromActor(Enemy);
        const float StartHealth = EnemyASC->GetNumericAttribute(UHealthSet::GetHealthAttribute());

        HeroASC->TryActivateAbilitiesByTag(
            FGameplayTagContainer(FGameplayTag::RequestGameplayTag("Ability.Slot.Q")));

        // Nothing retries: wait a fixed time, then look once
        FTSTicker::GetCoreTicker().AddTicker(FTickerDelegate::CreateLambda(
            [this, Done, Hero, Enemy, EnemyASC, StartHealth](float)
        {
            const float Health = EnemyASC->GetNumericAttribute(UHealthSet::GetHealthAttribute());
            TestEqual(TEXT("Damage"), StartHealth - Health, 100.f);
            TestTrue(TEXT("Stunned"),
                EnemyASC->HasMatchingGameplayTag(FGameplayTag::RequestGameplayTag("Status.Stunned")));
            Hero->Destroy();
            Enemy->Destroy();
            Done.Execute();
            return false;
        }), 0.5f);
    });
}
charge.spec.tsSPECTER
import { test, expect } from '@specter-automation/test';

test('charge damages and stuns enemies', async ({ world }) => {
  const hero = await world.spawnActor('BP_Hero_Knight', { location: { x: 0, y: 0, z: 100 } });
  const enemy = await world.spawnActor('BP_Minion', {
    location: { x: 400, y: 0, z: 100 },
    properties: { InitialTeamId: 2 },
  });

  await hero.triggerAbilityByTag('Ability.Slot.Q');

  // Each check retries until it passes or times out
  await expect(enemy).toHaveAttributeChange('HealthSet', 'Health', { delta: -100 });
  await expect(enemy).toHaveGameplayTag('Status.Stunned');
  // What the test spawned is cleaned up after it
});
Automation frameworkSpecter
Change a testRecompile the editorSave the file and rerun
Waiting for the gameLatent commands and fixed waitsMatchers retry until it happens
When it failsA log lineTimeline, preview frames, AI trail, the step's code
MultiplayerPossible, by handServer and clients in one test, with lag emulation
PerformanceSeparate profilingPercentiles and hitch causes, checked in the test
CostFree, built inA studio licence

Keep Gauntlet for launching builds on devices: Specter is the layer your tests are written and debugged in.

See it on your game.

Book a walkthrough, or start a 30-day proof of concept: your first tests running in your CI, on your project.