mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-06-12 08:54:57 +03:00
feat: show case id in failure output for easy navigation
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) <noreply@anthropic.com>
This commit is contained in:
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user