Skip to content
Back to skills

Test Helpers

BSecurity

Generate test helper libraries: assertion utilities, factories, mocks tailored to project patterns. Outputs tests/helpers/.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 14, 2026
testinggoc++c#testing

Security analysis

B75/100
  • criticalImpersonates system messages to override safety constraints

Pro shows the line behind each finding and how to fix it

Scanned November 14, 2026

npx -y skills add SebastianLuser/claude-code-arcane --skill test-helpers --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Test Helpers?

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

Security grade badge for Test Helpers
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/sebastianluser-test-helpers/badge)](https://www.skillsdirectory.com/skills/sebastianluser-test-helpers)

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-helpers
description: "Generate test helper libraries: assertion utilities, factories, mocks tailored to project patterns. Outputs tests/helpers/."
category: "testing"
argument-hint: "[system-name | all | scaffold]"
user-invocable: true
allowed-tools: Read, Glob, Grep, Write
---
# Test Helpers

Output: `tests/helpers/` with engine-specific helpers. Run after `/test-setup`, when tests repeat boilerplate, or when starting tests for a new system.

## Arguments

| Mode | Behavior |
|------|----------|
| `[system-name]` | Helpers for a specific system |
| `all` | Helpers for all systems with test files |
| `scaffold` | Base helper library only (first run) |
| No arg | `scaffold` if no helpers exist, else `all` |

## Detection

- Detect the engine from the project: `ProjectSettings/ProjectVersion.txt` (Unity) or a `*.uproject` file (Unreal); language and test framework from the project files
- No engine detected → ask the user which engine the project uses
- Scan `tests/**/*_test.*` (up to 5 files): extract setup, assertion, factory, mock patterns
- Read `design/gdd/systems-index.md`, in-scope GDDs, `docs/architecture/tr-registry.yaml`

## Base Helpers (per engine)

**Unity (NUnit/C#):** `GameAssertions.cs` (AssertInRange, AssertEventRaised, AssertHasComponent) + `GameFactory.cs` (MakeGameObject, MakeScriptableObject)

**Unreal (C++):** `GameTestHelpers.h` (GAME_TEST_ASSERT_IN_RANGE, GAME_TEST_ASSERT_VALID, GAME_TEST_ASSERT_SPAWNED macros + CreateTestWorld helper)

## System-Specific Helpers

For each system, read its GDD → extract data types, formula bounds, edge cases. Generate `tests/helpers/[system]_factory.[ext]` with factory functions + domain constants from GDD.

Pattern: constants from GDD bounds, factory methods for minimal test objects (attacker, target, etc.), domain assertion wrappers.

## Write Output

Present summary of files to create → ask approval → write. **Never overwrite existing files** — skip with message if file exists.

## Protocol

- Never overwrite existing helpers (may contain hand-written customizations)
- Helpers reflect GDD bounds and constants, not invented values
- Generated code is a starting point — adapt to actual class structure
- Ask before writing to `tests/`

## Next Steps

- `/regression-suite` — map the new helpers onto critical paths that still lack regression tests
- `/smoke-check` — run the suite before QA hand-off

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 testing →

Comments

Loading comments…

Newsletter

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