mirror of
https://github.com/boshu2/agentops.git
synced 2026-09-14 15:08:13 +08:00
46 lines
1.1 KiB
Bash
Executable File
46 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Test: implement skill
|
|
# Verifies the implement skill works correctly
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
source "$SCRIPT_DIR/test-helpers.sh"
|
|
export MAX_TURNS=6
|
|
|
|
echo "=== Test: implement skill ==="
|
|
echo ""
|
|
|
|
# Test 1: Verify skill is recognized
|
|
echo "Test 1: Skill recognition..."
|
|
|
|
output=$(run_claude "Answer concisely without running tools: what is the /agentops:implement skill in this plugin?" 60)
|
|
|
|
if assert_contains "$output" "implement" "Skill name recognized"; then
|
|
:
|
|
else
|
|
exit 1
|
|
fi
|
|
|
|
if assert_contains "$output" "task\|issue\|work\|lifecycle\|execut" "Describes task execution"; then
|
|
:
|
|
else
|
|
exit 1
|
|
fi
|
|
|
|
echo ""
|
|
|
|
# Test 2: Verify lifecycle
|
|
echo "Test 2: Lifecycle handling..."
|
|
|
|
output=$(run_claude "Answer concisely without running tools: what lifecycle does /agentops:implement follow?" 60)
|
|
|
|
if assert_contains "$output" "start\|progress\|complete\|close\|closing\|commit\|research\|plan\|implement\|validate\|harvest" "Mentions lifecycle steps"; then
|
|
:
|
|
else
|
|
exit 1
|
|
fi
|
|
|
|
echo ""
|
|
|
|
echo "=== All implement skill tests passed ==="
|