Bash Testing

Adds or updates bats-core, shunit2, or plain-script test coverage for a Bash change by first discovering the repository's existing test layout and conventions, matching them rather than imposing a new framework, deciding whether the change requires a test at all, making a script testable by separating logic into functions from the entry point, and running the suite in a bounded verify loop. Use when a shell script's behavior changes and that change should be locked in, including fixing a bug so it cannot regress, pinning an exit code or output that is currently wrong, adding behavior, or covering input validation, cleanup, privilege, or destructive paths, and when deciding where a new shell test belongs in an unfamiliar repository. Not for test work in other languages, and not for documenting, explaining, or tuning CI for a script whose behavior is unchanged.

konstruktoid Updated

File contents

konstruktoid/agent-instructions-skills commit bff399c30d

Frequently asked questions

npx get-skill add konstruktoid/bash-testing