From e646e7190dec528213e84329f8defb4ffca076d1 Mon Sep 17 00:00:00 2001 From: Richard Cocks <50965970+richardcocks@users.noreply.github.com> Date: Fri, 21 Aug 2026 20:47:48 +0100 Subject: [PATCH] Print failures after todos in the console report Failure details now land last, just above the summary line, so the final screenful is the one that needs acting on. Co-Authored-By: Claude Fable 5 --- src/vouch/internal/report/console.gleam | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/vouch/internal/report/console.gleam b/src/vouch/internal/report/console.gleam index b87e2e6..d2459a6 100644 --- a/src/vouch/internal/report/console.gleam +++ b/src/vouch/internal/report/console.gleam @@ -1,5 +1,6 @@ //// The default console reporter. Prints a line per result as events arrive, -//// buffers failures and todos, and renders details plus a summary at RunEnd. +//// buffers failures and todos, and renders todos, then failure details, +//// then a summary at RunEnd. import gleam/dict import gleam/int @@ -60,8 +61,8 @@ fn handle(style: Style, state: State, e: Event) -> State { } } event.RunEnd(tally, duration) -> { - print_failures(style, list.reverse(state.failures)) print_todos(style, list.reverse(state.todos)) + print_failures(style, list.reverse(state.failures)) print_summary(style, state.discovered, tally, duration) state }