test-helpers

Solid

Generate engine-specific test helper libraries for the project's test suite. Reads existing test patterns and produces tests/helpers/ with assertion utilities, factory functions, and mock objects tailored to the project's systems. Reduces boilerplate in new test files.

Testing & QA 20,555 stars 2999 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 97/100

Stars 20%
100
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Test Helpers Writing test cases is faster and more consistent when common setup, teardown, and assertion patterns are abstracted into helpers. This skill generates a `tests/helpers/` library tailored to the project's actual engine, language, and systems — so every developer writes less boilerplate and more assertions. **Output:** `tests/helpers/` directory with engine-specific helper files **When to run:** - After `/test-setup` scaffolds the framework (first time) - When multiple test files repeat the same setup boilerplate - When starting to write tests for a new system --- ## 1. Parse Arguments **Modes:** - `/test-helpers [system-name]` — generate helpers for a specific system (e.g., `/test-helpers combat`) - `/test-helpers all` — generate helpers for all systems with test files - `/test-helpers scaffold` — generate only the base helper library (no system-specific helpers); use this on first run - No argument — run `scaffold` if no helpers exist, else `all` --- ## 2. Detect Engine and Language Read `.claude/docs/technical-preferences.md` and extract: - `Engine:` value - `Language:` value - `Framework:` from the Testing section If engine is not configured: "Engine not configured. Run `/setup-engine` first." --- ## 3. Load Existing Test Patterns Scan the test directory for patterns already in use: ``` Glob pattern="tests/**/*_test.*" (all test files) ``` For a representative sample (up to 5 files), read the test files and extract: - Setup patterns (how `b...

Details

Author
Donchitos
Repository
Donchitos/Claude-Code-Game-Studios
Created
3 months ago
Last Updated
1 weeks ago
Language
Shell
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Testing & QA Listed

test-generator

Generate unit tests based on existing code patterns and testing frameworks.

335 Updated today
aiskillstore
Testing & QA Solid

test-patterns

Applies proven testing patterns — Arrange-Act-Assert (AAA), Given-When-Then, Test Data Builders, Object Mother, parameterized tests, fixtures, spies, and test doubles — to help write maintainable, reliable, and readable test suites. Use when the user asks about writing unit tests, integration tests, or end-to-end tests; structuring test cases or test suites; applying TDD or BDD practices; working with mocks, stubs, spies, or fakes; improving test coverage or reducing flakiness; or needs guidance on test organization, naming conventions, or assertions in frameworks like Jest, Vitest, pytest, or similar.

1,177 Updated today
rohitg00
Web & Frontend Listed

test-gen

Generate and verify tests — happy path, edge cases, error paths — using the project's own framework and patterns

1 Updated today
allysgrandiose674
AI & Automation Solid

test-setup

Scaffold the test framework and CI/CD pipeline for the project's engine. Creates the tests/ directory structure, engine-specific test runner configuration, and GitHub Actions workflow. Run once during Technical Setup phase before the first sprint begins.

20,555 Updated 1 weeks ago
Donchitos
Testing & QA Listed

project-testing

Custom test patterns and fixtures for {project}. Covers E2E, integration, and specialized testing requirements.

335 Updated today
aiskillstore