Skip to content

Commit 203c475

Browse files
committed
Add print_test_errors to display test failures in UI
- Call Test.print_test_errors(ts) when tests fail during grading - This ensures test failure details are visible in the UI output - Test errors show with stack traces and expressions that failed - Helps users debug why their solution received a score of 0
1 parent 51724f9 commit 203c475

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/tools/grade_problem.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ function ClaudeMCPTools.execute(tool::GradeProblemTool, params::Dict)
9292

9393
has_test_failures = has_failures(ts)
9494

95+
# Print test errors to stdout so they appear in the UI
96+
if has_test_failures
97+
Test.print_test_errors(ts)
98+
end
99+
95100
# Debug: Print the result type
96101
@debug "Grade function returned: $(typeof(result))"
97102

0 commit comments

Comments
 (0)