mirror of
https://github.com/boshu2/agentops.git
synced 2026-09-14 15:08:13 +08:00
46 lines
1022 B
Bash
Executable File
46 lines
1022 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Test: plan skill
|
|
# Verifies the plan skill works correctly
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
source "$SCRIPT_DIR/test-helpers.sh"
|
|
export MAX_TURNS=6
|
|
|
|
echo "=== Test: plan skill ==="
|
|
echo ""
|
|
|
|
# Test 1: Verify skill is recognized
|
|
echo "Test 1: Skill recognition..."
|
|
|
|
output=$(run_claude "Describe what /agentops:plan does in one concise sentence." 60)
|
|
|
|
if assert_contains "$output" "plan" "Skill name recognized"; then
|
|
:
|
|
else
|
|
exit 1
|
|
fi
|
|
|
|
if assert_contains "$output" "behavior\|acceptance\|scope\|evidence" "Describes one behavior contract"; then
|
|
:
|
|
else
|
|
exit 1
|
|
fi
|
|
|
|
echo ""
|
|
|
|
# Test 2: Verify caller-owned scheduling boundary
|
|
echo "Test 2: Caller-owned scheduling boundary..."
|
|
|
|
output=$(run_claude "Does /agentops:plan claim work, assign owners, or create a queue? Answer briefly." 60)
|
|
|
|
if assert_contains "$output" "no\|caller\|advisory\|not" "Keeps scheduling caller-owned"; then
|
|
:
|
|
else
|
|
exit 1
|
|
fi
|
|
|
|
echo ""
|
|
|
|
echo "=== All plan skill tests passed ==="
|