Both validate.bats and new-skill.bats constructed SCRIPT using $(dirname "$BATS_TEST_FILENAME"), which resolves to tests/ — causing every test to fail with file-not-found. Fixed to use $BATS_TEST_DIRNAME/../scripts/ to reach the actual scripts/ directory. Also clarifies that bats-support/bats-assert must be installed from the repo root (not the skill root) to match where the tests load them from, and adds text language tags to three output-template code blocks in skill-audit's SKILL.md. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
706 B
706 B
tests/
Test files for scripts bundled with this skill.
Dependencies
Tests require bats-support and
bats-assert. The test files load
helpers from the repo root's tests/test_helper/.
From the repo root:
git clone https://github.com/bats-core/bats-support tests/test_helper/bats-support
git clone https://github.com/bats-core/bats-assert tests/test_helper/bats-assert
Run all tests for this skill (from the repo root):
bats plugins/kyberforge/skills/skill-audit/tests/
Files
| File | Purpose |
|---|---|
validate.bats |
Bats test suite for scripts/validate.sh |