summaryrefslogtreecommitdiff
path: root/tests/opencode/run-tests.sh
AgeCommit message (Collapse)Author
2026-03-09chore: remove dead lib/skills-core.js and its testsJesse Vincent
Last consumer (Codex bootstrap CLI) was removed on 2026-02-05. Removes the library, its dedicated test file, and references in test-plugin-loading.sh and run-tests.sh. h/t @RomarQ (PR #525) for flagging this.
2025-11-23fix: address code review issues in opencode support branchClaude
- Fix test runner exiting early due to ((var++)) returning 1 with set -e - Remove duplicate frontmatter stripping in superpowers-codex, use shared skillsCore.stripFrontmatter() - Remove unused promptsDir/promptFile variables from opencode plugin - Derive superpowers skills path from __dirname for better install flexibility - Simplify test-skills-core.sh by removing failing ESM import attempt
2025-11-23test: add automated test suite for opencode pluginJesse Vincent
Create comprehensive tests in tests/opencode/ that verify the plugin works correctly in an isolated test environment: - setup.sh: Creates temp HOME and installs plugin with proper symlinks - test-plugin-loading.sh: Verifies plugin structure and JavaScript syntax - test-skills-core.sh: Unit tests for skills-core.js library functions - test-tools.sh: Integration tests for use_skill/find_skills (requires OpenCode) - test-priority.sh: Tests project > personal > superpowers priority - run-tests.sh: Main test runner with options for integration tests Run basic tests: ./tests/opencode/run-tests.sh Run all tests: ./tests/opencode/run-tests.sh --integration