From 4a697db47a692a9dbd1a6d59461507d3b8700d32 Mon Sep 17 00:00:00 2001 From: Nick Shirokov Date: Sat, 28 Mar 2026 13:21:25 +0300 Subject: [PATCH] feat: show case id in failure output for easy navigation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Compact mode shows "cases/meta-compile/catalog-basic" next to failed test name — model can open the file, rerun, or update snapshot. Verbose mode shows id for all cases. Co-Authored-By: Claude Opus 4.6 (1M context) --- tests/skills/runner.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/skills/runner.mjs b/tests/skills/runner.mjs index 80d05de2..03621ff6 100644 --- a/tests/skills/runner.mjs +++ b/tests/skills/runner.mjs @@ -488,12 +488,12 @@ function printReport(results, opts) { const allOk = skillFailed.length === 0; if (opts.verbose) { - // Verbose: show every case + // Verbose: show every case with id console.log(` ${skill}`); for (const r of cases) { const icon = r.passed ? '\u2713' : '\u2717'; const suffix = r.snapshotUpdated ? ' [snapshot updated]' : ''; - console.log(` ${icon} ${r.name} (${r.elapsed})${suffix}`); + console.log(` ${icon} ${r.name} (${r.elapsed}) ${r.id}${suffix}`); if (!r.passed) { for (const err of r.errors) { for (const line of err.split('\n')) { @@ -508,7 +508,7 @@ function printReport(results, opts) { console.log(` ${icon} ${skill} ${skillPassed}/${skillTotal} (${skillTime}s)`); if (!allOk) { for (const r of skillFailed) { - console.log(` \u2717 ${r.name} (${r.elapsed})`); + console.log(` \u2717 ${r.name} ${r.id}`); for (const err of r.errors) { for (const line of err.split('\n')) { console.log(` ${line}`);