Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.13 KB

File metadata and controls

35 lines (26 loc) · 1.13 KB

Testing

Centaur Layer has no build step. Validate the plugin structure with local commands.

bash scripts/validate-plugin.sh

The validation run also executes the bats-style suite under tests/bats/. Run that suite directly while iterating:

bash tests/bats/bin/bats tests/bats/*.bats

tests/bats/bin/bats is a minimal in-tree runner — no external bats-core install required.

Manual smoke test:

  1. Load the plugin in a throwaway repository.
  2. Run centaur-init.
  3. Confirm .centaur/contract.md, .centaur/README.md, CLAUDE.md, and .gitignore exist.
  4. Make a small diff.
  5. Run centaur-check and confirm it reports deterministic diff-specific signals; the skill layer may add one concrete question from the actual diff.
  6. Run centaur-health and confirm it separates file presence from Centaur policy, verification command, and guardrail signals.
  7. Run centaur-drill and confirm it uses synthetic snippets only.

Deterministic script smoke tests:

tmp="$(mktemp -d)"
git -C "$tmp" init
bash scripts/centaur-init.sh "$tmp"
bash scripts/centaur-health.sh "$tmp"
bash scripts/centaur-drill.sh boundary