Add validate-provenance.sh and validate-provenance.bats to enforce the sources provenance chain introduced by skill-author. Eight checks cover slug cross-references, Contributing files existence, bidirectional source_keys linkage, Research doc: field presence, and upstream research doc alignment (forward INFO, reverse FAIL). Adds a new Provenance report dimension and INFO finding level (observational, exit-0, counted separately as · P info in the result block). Closes #8 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
30 lines
792 B
Markdown
30 lines
792 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). The test files load
|
|
helpers from the repo root's `tests/test_helper/`.
|
|
|
|
From the repo root:
|
|
|
|
```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 for this skill (from the repo root):
|
|
|
|
```bash
|
|
bats plugins/kyberforge/skills/skill-audit/tests/
|
|
```
|
|
|
|
## Files
|
|
|
|
| File | Purpose |
|
|
|------|---------|
|
|
| `validate.bats` | Bats test suite for `scripts/validate.sh` |
|
|
| `validate-provenance.bats` | Bats test suite for `scripts/validate-provenance.sh` |
|