diff options
| author | Jesse Vincent <jesse@fsck.com> | 2025-11-29 10:35:38 -0800 |
|---|---|---|
| committer | Jesse Vincent <jesse@fsck.com> | 2025-12-17 16:44:50 -0800 |
| commit | 0aba33be1c64686a6e1682cce4fa2a0ed040fc33 (patch) | |
| tree | 35b474212272301b08a9a3ff6703db8963ed4a76 /tests/claude-code/test-subagent-driven-development-integration.sh | |
| parent | 06310d6f5f960f28f8eec1d8117c0739a42e2163 (diff) | |
fix: run integration test from superpowers dir to access local dev skills
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.
Diffstat (limited to 'tests/claude-code/test-subagent-driven-development-integration.sh')
| -rwxr-xr-x | tests/claude-code/test-subagent-driven-development-integration.sh | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/tests/claude-code/test-subagent-driven-development-integration.sh b/tests/claude-code/test-subagent-driven-development-integration.sh index a4097a0..e1b8efb 100755 --- a/tests/claude-code/test-subagent-driven-development-integration.sh +++ b/tests/claude-code/test-subagent-driven-development-integration.sh @@ -135,8 +135,19 @@ EOF # Note: We use a longer timeout since this is integration testing # Use --allowed-tools to enable tool usage in headless mode -PROMPT=$(cat "$TEST_PROJECT/prompt.txt") -timeout 1800 claude -p "$PROMPT" --allowed-tools=all > "$OUTPUT_FILE" 2>&1 || { +# IMPORTANT: Run from superpowers directory so local dev skills are available +PROMPT="Change to directory $TEST_PROJECT and then execute the implementation plan at docs/plans/implementation-plan.md using the subagent-driven-development skill. + +IMPORTANT: Follow the skill exactly. I will be verifying that you: +1. Read the plan once at the beginning +2. Provide full task text to subagents (don't make them read files) +3. Ensure subagents do self-review before reporting +4. Run spec compliance review before code quality review +5. Use review loops when issues are found + +Begin now. Execute the plan." + +cd "$SCRIPT_DIR/../.." && timeout 1800 claude -p "$PROMPT" --allowed-tools=all > "$OUTPUT_FILE" 2>&1 || { echo "EXECUTION FAILED" cat "$OUTPUT_FILE" exit 1 |
