Skip to content
Back to skills

Test Harnesses

ASecurity

Index of FRB1's existing test harnesses (fake game socket, gold project load+build, real game launch, embedded-code tests) — check here before saying a scenario can't be tested. Triggers: TDD, "how would we test", end-to-end, LiveGameProcess, GoldProject, FakeGameSide, BuildSmoke, LiveGame.

  • 583 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 7, 2026
toolsgotesting

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add vchelaru/FlatRedBall --skill test-harnesses --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Test Harnesses?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Test Harnesses
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vchelaru-test-harnesses/badge)](https://www.skillsdirectory.com/skills/vchelaru-test-harnesses)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: test-harnesses
description: Index of FRB1's existing test harnesses (fake game socket, gold project load+build, real game launch, embedded-code tests) — check here before saying a scenario can't be tested. Triggers: TDD, "how would we test", end-to-end, LiveGameProcess, GoldProject, FakeGameSide, BuildSmoke, LiveGame.
---

# Test Harnesses

Before calling a scenario untestable, or proposing a new harness, check this table and `ls` the
`TestSupport` folders. Details live in [[glue-live-game-testing]] (real game process) and
[[glue-unit-test-bootstrap]] (headless Glue, gold projects).

| Need | Harness | Category |
|---|---|---|
| Glue-side socket behavior with no game | `FRBDK\Glue\Tests\GlueUnitTests\GameCommunicationPlugin\FakeGameSide.cs` | default |
| Real project loaded headlessly in Glue, codegen run, built, live-edit code embedded | `TestSupport\GoldProject.cs` | `BuildSmoke` |
| Built game launched and driven over the real live-edit socket | `TestSupport\LiveGameProcess.cs` | `LiveGame` |
| Embedded (game-side) logic compiled and run in a scratch game project | pattern explained in `GlueControl\VariableAssignmentLogicEnumConversionTests.cs` | `BuildSmoke` |
| `#if` version gates in embedded code, no build | `GlueControl\EmbeddedVersionGateTests.cs` (Roslyn) | default |
| Embedded files that compile without a game, run in-process | `Tests\EngineUnitTests` links them in with `<Compile Include ... Link>` | engine tests |

## Gotchas

- **A race doesn't need to happen for real to be tested.** Put the files and timestamps into the state the race leaves behind, then launch.
- **Extending a harness beats working around it.** If `LiveGameProcess.StartAsync` or `GoldProject` lacks a hook for the step you need, add the hook there.
- **`LoadFormsSampleAsync` changes the rest of the test run.** It registers every plugin's asset types for the whole process, so unrelated codegen tests start generating different text (`Map = X` becomes `Map = X.Clone()`). Build the project in memory unless the test is about project load; `ExposedVariableSyncTests` shows the shape.
- **A running Glue breaks the test build.** It holds `GlueFormsCore.exe` and `.dll` in the Debug output, so `dotnet test` fails with MSB3027. Close Glue, or run the tests from a throwaway detached worktree.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.