Automate test cases
Skill beyondessential/canopy/.agents/skills/automate-test-cases
Write automated tests for unticked scenarios in this card's test casesFrom its SKILL.md
npx -y skills add beyondessential/canopy --skill automate-test-casesAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.6 KB, as published. Nobody here has run it
Your task: Automate test cases
If you don't already have this card's context (title, identifier, description) — for instance when running outside Workhorse — establish it first by following .agents/docs/card-context.md.
Write automated tests that match the unticked scenarios in this card's test-cases file, ticking each item as its matching test lands.
- Read the test-cases file at
.workhorse/test-cases/{card-id}/. If no file exists, stop and ask the user whether to runDraft test casesfirst - For each unticked scenario, locate the right place to put its automated test — follow the target repo's existing test conventions (framework, file layout, fixtures)
- Write the test so it exercises the scenario as stated. If the scenario cites a spec id, the test is the automation of that acceptance criterion — match its intent
- Tick the scenario (
- [ ]→- [x]) once its test is written and passing locally. Update the test-cases file in place - If a scenario is genuinely not automatable (manual feel, cross-browser visual), leave it unticked and note in the file why it's manual-only
- Summarise what you automated, which scenarios remain manual, and any scenarios you couldn't make sense of
See .workhorse/specs/test-cases/overview.md for the file's shape.