summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2026-01-17fix: preserve original event type, use source field for wrapperJesse Vincent
2026-01-17test: add brainstorm server integration testsJesse Vincent
2025-12-26Strengthen using-superpowers for explicit skill requestsJesse Vincent
Addresses failure mode where Claude skips skill invocation even when user explicitly requests it by name (e.g., "subagent-driven-development, please"). Skill changes: - "Check for skills" → "Invoke relevant or requested skills" - "BEFORE ANY RESPONSE" → "BEFORE any response or action" - Added reassurance that wrong skill invocations are okay - New red flag: "I know what that means" Tests: - New test suite for explicit skill requests - Single-turn and multi-turn scenarios with --continue - Tests with haiku model and user CLAUDE.md
2025-12-17Add skill triggering test frameworkJesse Vincent
Creates tests/skill-triggering/ to validate skills trigger correctly from naive prompts (without explicitly naming the skill). Tests 6 skills: - systematic-debugging - test-driven-development - writing-plans - dispatching-parallel-agents - executing-plans - requesting-code-review All 6 tests pass - skills trigger correctly based on their descriptions.
2025-12-17Document skill description trap: descriptions override flowchartsJesse Vincent
Testing revealed that skill descriptions summarizing workflow cause Claude to follow the description instead of reading the skill body. - A description saying "code review between tasks" caused ONE review - The flowchart clearly showed TWO reviews (spec compliance + quality) - Minimal description ("Use when...") correctly deferred to flowchart Updated writing-skills with: - "Description = When to Use, NOT What the Skill Does" section - Cautionary tale about this actual failure - Examples of good (triggers only) vs bad (workflow summary) descriptions Updated subagent-driven-development: - Removed workflow summary from description - Now just: "Use when executing implementation plans..." Updated test runner: - Added --dangerously-skip-permissions for automated testing
2025-12-17Add .claude settings to scaffolds for auto-approved permissionsJesse Vincent
2025-12-17Add test suite for subagent-driven-development skillJesse Vincent
Two test projects for validating the skill with full end-to-end runs: - go-fractals: 10 tasks, CLI tool with Sierpinski and Mandelbrot - svelte-todo: 12 tasks, CRUD app with localStorage and Playwright Each test has design.md, plan.md, and scaffold.sh. Run with: ./tests/subagent-driven-dev/run-test.sh go-fractals
2025-12-17Add token usage analysis to subagent-driven-development testJesse Vincent
- Rewrote analyze-token-usage.py to parse main session file correctly - Extracts usage from toolUseResult fields for each subagent - Shows breakdown by agent with descriptions - Integrated into test-subagent-driven-development-integration.sh - Displays token usage automatically after each test run
2025-12-17fix: verify skill usage via session transcript not text outputJesse Vincent
The skill instructions are internal and don't appear in user-facing output. Updated verification to parse the session JSONL transcript and check for actual tool usage: - Skill tool invocation - Task tool (subagents) - TodoWrite (tracking) - Implementation results
2025-12-17test: use bypassPermissions mode for unrestricted testingJesse Vincent
dontAsk mode was auto-denying Write tool. Use bypassPermissions instead to allow full tool access in this controlled test environment.
2025-12-17test: auto-approve permissions with --permission-mode dontAskJesse Vincent
Headless tests need automatic permission approval to write files. Using dontAsk mode to auto-approve permissions for test directory.
2025-12-17test: add --add-dir flag for temp directory accessJesse Vincent
Claude needs explicit permission to access the temp test directory. Added --add-dir flag to grant access to the test project.
2025-12-17test: show Claude output in real-time during integration testJesse Vincent
Use tee instead of redirection so test output is visible during execution while still being saved to file for analysis.
2025-12-17fix: run integration test from superpowers dir to access local dev skillsJesse Vincent
The superpowers-dev marketplace makes skills available only when running from the plugin directory. Updated test to run claude from superpowers directory while working on the test project.
2025-12-17Fix tests to use --allowed-tools flagJesse Vincent
Claude Code headless mode requires --allowed-tools flag to actually execute tool calls. Without it, Claude only responds as if it's doing things but doesn't actually use tools. Changes: - Updated run_claude helper to accept allowed_tools parameter - Updated integration test to use --allowed-tools=all - This enables actual tool execution (Write, Task, Bash, etc.) Now the integration test should actually execute the workflow instead of just talking about it.
2025-12-17Fix syntax error in integration testJesse Vincent
Simplified command substitution to avoid shell parsing issues. Instead of nested heredoc in command substitution, write prompt to file first then read it.
2025-12-17Add integration test for subagent-driven-developmentJesse Vincent
Created full end-to-end integration test that executes a real plan and verifies the new workflow improvements actually work. New test: test-subagent-driven-development-integration.sh - Creates real Node.js test project - Generates implementation plan (2 tasks) - Executes using subagent-driven-development skill - Verifies 8 key behaviors: 1. Plan read once at beginning (not per task) 2. Full task text provided to subagents (not file reading) 3. Subagents perform self-review 4. Spec compliance review before code quality 5. Spec reviewer reads code independently 6. Working implementation produced 7. Tests pass 8. No extra features added (spec compliance) Integration tests are opt-in (--integration flag) due to 10-30 min runtime. Updated run-skill-tests.sh: - Added --integration flag - Separates fast tests from integration tests - Shows note when integration tests skipped Updated README with integration test documentation. Run with: ./run-skill-tests.sh # Fast tests only ./run-skill-tests.sh --integration # Include integration tests
2025-12-17Add Claude Code skills test frameworkJesse Vincent
Created automated test suite for testing superpowers skills using Claude Code CLI in headless mode. New files: - tests/claude-code/run-skill-tests.sh - Main test runner - tests/claude-code/test-helpers.sh - Helper functions for testing - tests/claude-code/test-subagent-driven-development.sh - First test - tests/claude-code/README.md - Documentation Test framework features: - Run Claude Code with prompts and capture output - Assertion helpers (contains, not_contains, count, order) - Test project creation helpers - Timeout support (default 5 minutes) - Verbose mode for debugging - Specific test selection First test verifies subagent-driven-development skill: - Skill loading - Workflow ordering (spec compliance before code quality) - Self-review requirements - Plan reading efficiency (read once) - Spec compliance reviewer skepticism - Review loops - Task context provision Run with: cd tests/claude-code && ./run-skill-tests.sh
2025-11-24fix: cleanup remaining code review issuesClaude
- Remove unused destructured parameters (project, $, worktree) from plugin - Add test coverage for checkForUpdates function (error handling cases)
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-23fix: add OPENCODE_CONFIG_DIR for proper test isolationJesse Vincent
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