test-snapshots

star 1

Run snapshot tests

adamayoung By adamayoung schedule Updated 6/10/2026

name: test-snapshots description: Run snapshot tests

Run snapshot tests

Runs the PopcornSnapshotTests test plan on the iOS Simulator. Optional argument: a <TestTarget>/<TestClass> or <TestTarget>/<TestClass>/<testMethod> for a subset.

Preferred — Xcode MCP (xcode), when running inside Xcode. Get the tabIdentifier from mcp__xcode__XcodeListWindows, then run mcp__xcode__RunAllTests (or mcp__xcode__RunSomeTests with <specifier> for a subset) with that tabIdentifier, targeting the PopcornSnapshotTests plan.

Fallback — make, when the MCP isn't available. Delegate to a Haiku subagent (subagent_type: general-purpose, model: haiku). Do not run it yourself. Prompt it to:

Run `mkdir -p .build && make test-snapshots [TEST_CLASS=<specifier>] > .build/last-snapshots.log 2>&1`,
check the exit status, and report ONLY:
- Status: passed or failed
- Counts: total / passed / failed
- Each failing test as `SuiteName/testName` with its `file:line` (omit if none)
- On failure, the log path `.build/last-snapshots.log`
Do not paste passing-test output or raw logs.

Snapshot failures usually mean the rendered UI changed — inspect the failure images to decide whether the change is intentional (and re-record if so).

Install via CLI
npx skills add https://github.com/adamayoung/popcorn --skill test-snapshots
Repository Details
star Stars 1
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator