Testing

Testing guide and pre-commit testing strategy for simpler. Use when running tests, adding tests, or deciding what to test before committing.

49 stars 102 forksTesting & QA

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add hw-native-sys/simpler --skill testing
Manual install
git clone --depth 1 https://github.com/hw-native-sys/simpler.git /tmp/simpler
mkdir -p ~/.claude/skills
cp -r /tmp/simpler/.claude/skills/testing ~/.claude/skills/testing

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Testing

To add a capability or fix a defect test-first, read [tdd](references/tdd.md)
before writing the test. It covers seams, the red-green loop, anti-patterns and
mocking boundaries; the sections below still decide which suite and platform to
run.

## Test Types

1. **Python unit tests (ut-py)** (`tests/ut/`): Standard pytest tests for the Python compilation pipeline and nanobind bindings. Run with `pytest tests/ut`. Tests declaring `@pytest.mark.requires_hardware[("<platform>")]` auto-skip unless `--platform` points to a matching device.
2. **C++ unit tests (ut-cpp)** (`tests/ut/cpp/`): GoogleTest-based tests for pure C++ modules. Run with `cmake -B tests/ut/cpp/build -S tests/ut/cpp && cmake --build tests/ut/cpp/build && ctest --test-dir tests/ut/cpp/build -LE requires_hardware --output-on-failure`. Hardware-required tests carry a `requires_hardware` or `requires_hardware_<platform>` ctest label and are filtered via `-LE`.
3. **Scene tests** (`examples/{arch}/*/`, `tests/st/{arch}/*/`): End-to-end `@scene_test` classes declared inside `test_*.py`. Sim variants run cross-platform (Linux/macOS); hardware variants require the CANN toolkit and an Ascend device. Discovery is by pytest (batch) or `python test_*.py` (standalone); `#591`'s parallel orchestrator handles device bin-packing and ChipWorker reuse automatically.

## Running Tests

**Important**: Always read `.github/workflows/ci.yml` first for the current
Read the full skill on GitHub

Details

Skill name
testing
Path
.claude/skills/testing/SKILL.md
Repo updated
18 November 2026

FAQ

What does the Testing skill do?

Testing guide and pre-commit testing strategy for simpler. Use when running tests, adding tests, or deciding what to test before committing.

How do I install the Testing skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add hw-native-sys/simpler --skill testing. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Testing popular?

It lives in hw-native-sys/simpler, which has 49 GitHub stars and 102 forks.

Related skills

Benchmark

49

hw-native-sys/simpler

Benchmark runtime performance on hardware. If the current branch has commits ahead of upstream/main or uncommitted changes, compares against the fork point (merge-base). Otherwise benchmarks current state only. Use when the user asks to benchmark, measure performance, or compare latency.

Git & Code Review102

Checkout PR

49

hw-native-sys/simpler

Add a remote for a given PR's head repository and checkout a local pr-xxx-work branch. Use when the user wants to work on someone else's PR locally.

Git & Code Review102

Clean Branches

49

hw-native-sys/simpler

Remove stale local and remote git branches that have been merged into main. Detects regular merges and squash merges. Cleans up fork remote branches and prunes tracking refs. Use when the user asks to clean up branches, remove merged branches, or tidy up git.

Git & Code Review102

Game QA Lead

57

AlterLab-IEU/AlterLab_GameForge

QA Lead (Rook Callahan). Writes risk-based test plans, triages bugs, builds regression suites and release gates, and sets up automated tests for Godot (GUT, gdUnit4), Unity, Unreal and web (Vitest, Playwright), including smoke checks for AI-built games. Use for "test plan", "bug triage", "regression", "release gate", "flaky tests". Not for player playtests (use game-playtest).

Testing & QAIn 1 list

Test Runtime Sim

49

hw-native-sys/simpler

Run simulation tests for one runtime ($ARGUMENTS — host_build_graph or tensormap_and_ringbuffer). Use when the user asks to test a single runtime in simulation.

Testing & QA102

Game Web2d Specialist

57

AlterLab-IEU/AlterLab_GameForge

Builds 2D browser games with Phaser 4 (primary), PixiJS 8, Kaplay, Excalibur or LittleJS: framework choice, Phaser scenes, Arcade or Matter physics, Tiled/LDtk tilemaps, atlases, pixel-art scaling, Phaser 3 to 4 migration and Playwright checks. Use for "Phaser", "PixiJS", "Kaplay", "2D web game", "tilemap". Not for 3D browser games (use game-threejs-specialist).

Testing & QAIn 1 list

Browse the most popular Claude skills, all testing & qa skills, or write your own with the skills generator.