Просмотр исходного кода

fix(tests): handle case variations in skill recognition test

The assertion now matches "subagent-driven-development", "Subagent-Driven
Development", and "Subagent Driven" since Claude's responses may use
different casing and formatting styles.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
CL Kao 7 месяцев назад
Родитель
Сommit
1872f50b64
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      tests/claude-code/test-subagent-driven-development.sh

+ 1 - 1
tests/claude-code/test-subagent-driven-development.sh

@@ -14,7 +14,7 @@ echo "Test 1: Skill loading..."
 
 output=$(run_claude "What is the subagent-driven-development skill? Describe its key steps briefly." 30)
 
-if assert_contains "$output" "subagent-driven-development" "Skill is recognized"; then
+if assert_contains "$output" "subagent-driven-development\|Subagent-Driven Development\|Subagent Driven" "Skill is recognized"; then
     : # pass
 else
     exit 1