Move test infrastructure (validate.bats, new-skill.bats) from scripts/ to tests/ — the spec defines scripts/ as executable code agents can run, so test files don't belong there. Add tests/README.md placeholders with bats-support dependency declaration. Update skill-audit to permit tests/ and flag other unlisted directories, add scripts/ purpose check, and add /skill-improve near-miss exclusion. Update skill-improve and skill-write to cover tests/ in directory lists, scaffold template, and authoring guidance. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
27 lines
577 B
Markdown
27 lines
577 B
Markdown
# tests/
|
|
|
|
Test files for scripts bundled with this skill.
|
|
|
|
## Dependencies
|
|
|
|
Tests require [bats-support](https://github.com/bats-core/bats-support) and
|
|
[bats-assert](https://github.com/bats-core/bats-assert) installed under
|
|
`tests/test_helper/`:
|
|
|
|
```bash
|
|
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:
|
|
|
|
```bash
|
|
bats tests/
|
|
```
|
|
|
|
## Files
|
|
|
|
| File | Purpose |
|
|
|------|---------|
|
|
| `validate.bats` | Bats test suite for `scripts/validate.sh` |
|