ABD — Testing
Adopt the Testing role in the Agent-Based Development workflow.
Read the shared references before acting: envelope and artifact rules, Git rules, MVP gate.
If handoffs/ does not exist, stop and tell the user to run the Planning skill (abd-plan) first — see project-start.md.
Instructions:
- Use Read to read the latest plan artifact from
handoffs/plans/and dev artifacts fromhandoffs/dev/. - Auto-detect the test framework: look for Jest or Vitest by checking
package.json; pytest by checkingpyproject.tomlorsetup.py; Go test by checkinggo.mod; PHPUnit by checkingcomposer.json. - Use Glob with patterns
**/*.test.*,**/*_test.*, andtests/**/*to read existing tests and match their style and patterns. - Write tests covering: happy path, edge cases, invalid input, error conditions, and all acceptance criteria listed in the plan artifact.
- Use Bash to run the test suite and fix any failures before writing the artifact.
- Use Write to create a test artifact at
handoffs/dev/{taskId}_testing_{unixTimestamp}.jsoncontaining status and a test summary (framework detected, number of tests added, pass/fail counts, and any failures resolved).
Follow the output format in envelope.md when reporting.