mirror of
https://github.com/obra/superpowers.git
synced 2026-04-22 01:19:04 +08:00
test: add Test 9 - main branch red flag warning
TDD: Test verifies that subagent-driven-development skill warns against starting implementation directly on main/master branch. Test expects skill to recommend worktree or feature branch instead. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -149,4 +149,17 @@ fi
|
|||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
# Test 9: Verify main branch warning
|
||||||
|
echo "Test 9: Main branch red flag..."
|
||||||
|
|
||||||
|
output=$(run_claude "In subagent-driven-development, is it okay to start implementation directly on the main branch?" 30)
|
||||||
|
|
||||||
|
if assert_contains "$output" "worktree\|feature.*branch\|not.*main\|never.*main\|avoid.*main\|don't.*main" "Warns against main branch"; then
|
||||||
|
: # pass
|
||||||
|
else
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
|
||||||
echo "=== All subagent-driven-development skill tests passed ==="
|
echo "=== All subagent-driven-development skill tests passed ==="
|
||||||
|
|||||||
Reference in New Issue
Block a user