Skip to content

Testing Scripts

The current OpenPets test entrypoint is the repo-level test:pet script:

bash
bun test:pet <pet-name> --query "test connection"
bun test:pet <pet-name> --query "list items" --follow "show the first item"
bun run test:pet -- <pet-name> --cases pets/<pet-name>/test-cases.json

For lower-level checks, use the PET CLI directly:

bash
pets validate ./pets/<pet-name>
pets tools <pet-name>
pets exec <pet-name>-test-connection --args '{}' --json

Legacy shared utility bins may still exist for compatibility in older packages, but new pet docs and workflows should use bun test:pet and pets exec.