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:
parent
4da4d52fde
commit
6688c27681
3 changed files with 558 additions and 4 deletions
|
|
@ -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/"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue