Skip to content
Back to skills

Test Setup

BSecurity

Scaffold test framework and CI pipeline: tests/ directory, runner config, GitHub Actions workflow. Run once at project setup.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 14, 2026
toolsgobashtestinggitfrontendperformance

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-setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Test Setup?

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

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

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-setup
description: "Scaffold test framework and CI pipeline: tests/ directory, runner config, GitHub Actions workflow. Run once at project setup."
category: "testing"
argument-hint: "[force]"
user-invocable: true
allowed-tools: Read, Glob, Grep, Bash, Write
---
# Test Setup

Scaffold automated testing infrastructure. Run once during Technical Setup phase. Output: `tests/` directory + `.github/workflows/tests.yml`.

## Phase 1: Detect Engine & State

1. Detect the engine from the project: `ProjectSettings/ProjectVersion.txt` (Unity) or a `*.uproject` file (Unreal). None found → ask the user which engine the project uses
2. Check existing: `tests/`, `tests/unit/`, `tests/integration/`, `.github/workflows/`, engine-specific dirs
3. Report findings. If everything exists and no `force` arg → "Already in place. Re-run with `force` to regenerate"
4. `force` skips early-exit but never overwrites existing files

## Phase 2: Present Plan & Get Approval

Show file list to create (skipping existing). Ask approval before proceeding.

## Phase 3: Create Structure

### Directory layout
- `tests/unit/` — isolated unit tests (formulas, state, logic)
- `tests/integration/` — cross-system tests, save/load round-trips
- `tests/smoke/critical-paths.md` — 15-min manual gate (read by `/smoke-check`)
- `tests/evidence/` — screenshot/manual sign-off records
- `tests/README.md` — framework docs (engine, runner, naming conventions, story type → evidence table)

### Engine-specific

**Unity:** `tests/EditMode/README.md` + `tests/PlayMode/README.md`. Naming: `[System]Test.cs` → `Test_Scenario_Expected()`. Runner: Window → Test Runner.

**Unreal:** `Source/Tests/README.md`. Naming: `F[System]Test`, category `MyGame.[System].[Feature]`. Runner: Session Frontend → Automation or `-ExecCmds="Automation RunTests"`.

## Phase 4: CI Workflow

`.github/workflows/tests.yml` — runs on push to main + PRs.

**Unity:** `game-ci/unity-test-runner@v4` for editmode + playmode. Requires `UNITY_LICENSE` secret.

**Unreal:** self-hosted runner with UE Editor. `UE_EDITOR_PATH` env var. `-nullrhi -nosound -unattended`.

Both: upload test results/logs as artifacts.

## Phase 5: Smoke Test Seed

`tests/smoke/critical-paths.md`: core stability (launch, new game, menu inputs), core mechanic (update per sprint), data integrity (save/load), performance (fps, memory).

## Protocol

- Never overwrite existing test files — only create missing ones
- Always ask before creating files (Phase 2 approval required)
- Engine detection is non-negotiable — stop if not configured
- `force` = create missing files even if directory exists, never overwrite

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.