Skip to content

🐛 Lead a stopped build's test errors with Ceedling's EXCEPTION - #30

Merged
mkarlesky merged 1 commit into
next_versionfrom
fix/ceedling-exception-message
Oct 25, 2026
Merged

mkarlesky merged 1 commit into
next_versionfrom
fix/ceedling-exception-message

Conversation

@mkarlesky

Copy link
Copy Markdown
Member

When Ceedling stops before running any tests, every test errors with the whole transcript. The Testing view shows a message's first line, which was stdout:. Ceedling's reason, such as the ambiguous file reference of Ceedling#1364 or of a 1.2.0 coverage run of same-named files, was buried in the transcript.

Each message now leads with:

  1. the most severe compiler diagnostic, when problem matching found one, as before;
  2. Ceedling's EXCEPTION block: its exception line, less any decorator emoji, plus the output it carries, such as compiler errors, up to the closing could not complete operations line;
  3. the transcript.

Changes

  • extractCeedlingException() in ceedlingOutputParsing.ts. It reads stderr first, then stdout.
  • The engine's no-report path, shared by runs and debug builds, uses it.
  • New fixtures in tests/fixtures/ceedling-1.2.1/: an ambiguous reference and a compiler failure, captured with decorators on.
  • CHANGELOG (Fixed), Architecture.md, KnownIssues.md, and the fixtures README.

Verification

  • Test-first: 10 new unit tests failed against a stub, then passed. just test: 469 unit and 18 integration tests pass. just lint: 0 findings.
  • Through the compiled engine against real Ceedling 1.2.1, on a #1364 layout, every errored test's first line is EXCEPTION: Ambiguous file reference 'test_calc.c' found. ….

🤖 Generated with Claude Code

…stdout:"

When Ceedling stops before running tests, every test errors with the whole
transcript, and the Testing view showed only its first line, "stdout:".
Ceedling's reason, e.g. an ambiguous file reference (Ceedling#1364), sat
deep in the transcript. Each message now leads with the most severe compiler
diagnostic, when problem matching found one, then Ceedling's EXCEPTION block,
then the transcript. Fixtures capture Ceedling 1.2.1's decorated output.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mkarlesky
mkarlesky merged commit da3e935 into next_version Oct 25, 2026
3 checks passed
@mkarlesky
mkarlesky deleted the fix/ceedling-exception-message branch October 25, 2026 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant