agentic-loop 3.2.4 → 3.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/ralph/verify/tests.sh +17 -1
package/package.json
CHANGED
package/ralph/verify/tests.sh
CHANGED
|
@@ -7,9 +7,25 @@ run_unit_tests() {
|
|
|
7
7
|
local log_file
|
|
8
8
|
log_file=$(create_temp_file ".log") || return 1
|
|
9
9
|
|
|
10
|
+
# Check if tests should run (supports true, false, "final")
|
|
11
|
+
local test_setting
|
|
12
|
+
test_setting=$(get_config '.checks.test' "")
|
|
13
|
+
|
|
14
|
+
# Handle "final" - only run on last story
|
|
15
|
+
if [[ "$test_setting" == "final" ]]; then
|
|
16
|
+
local remaining
|
|
17
|
+
remaining=$(jq '[.stories[] | select(.passes==false)] | length' "$RALPH_DIR/prd.json" 2>/dev/null || echo "1")
|
|
18
|
+
if [[ "$remaining" -gt 1 ]]; then
|
|
19
|
+
echo " (tests set to 'final' - will run on last story)"
|
|
20
|
+
return 0
|
|
21
|
+
fi
|
|
22
|
+
# Last story - use testCommand if specified, otherwise auto-detect
|
|
23
|
+
test_setting=$(get_config '.checks.testCommand' "")
|
|
24
|
+
fi
|
|
25
|
+
|
|
10
26
|
# Try common test commands
|
|
11
27
|
local test_cmd
|
|
12
|
-
test_cmd
|
|
28
|
+
test_cmd="$test_setting"
|
|
13
29
|
|
|
14
30
|
if [[ -z "$test_cmd" ]]; then
|
|
15
31
|
# Auto-detect test command
|