test(install): add 14 comprehensive installation tests

- Add test_installation.bats with full coverage of install.sh
- Tests cover directory creation, command installation, permissions
- Template and lib file copying verification
- Dependency detection with mocked failures (jq, git, node)
- PATH detection and warning system tests
- Uninstallation cleanup verification
- Idempotency testing (run twice without errors)
- End-to-end installation workflow validation
- All tests use isolated temp directories for safety
- Update CLAUDE.md with new test count (165 total)
- Fix npm test script to run tests recursively
- Version bump to v0.9.3
This commit is contained in:
frankbria 2026-01-09 14:05:46 -07:00
parent 4da4d52fde
commit 6688c27681
3 changed files with 558 additions and 4 deletions

View file

@ -9,7 +9,7 @@
"test": "tests"
},
"scripts": {
"test": "bats tests/",
"test": "bats tests/unit/ tests/integration/",
"test:unit": "bats tests/unit/",
"test:integration": "bats tests/integration/",
"test:e2e": "bats tests/e2e/"