Skip to content

testutils: use color-eyre for backtrace display#1

Closed
glehmann wants to merge 4 commits intogln/refactor-unwrap-to-question-mark-in-tests-lqywfrom
gln/testutils-backtrace-improvements-yvom
Closed

testutils: use color-eyre for backtrace display#1
glehmann wants to merge 4 commits intogln/refactor-unwrap-to-question-mark-in-tests-lqywfrom
gln/testutils-backtrace-improvements-yvom

Conversation

@glehmann
Copy link
Copy Markdown
Owner

ref: jj-vcs#9111

Checklist

If applicable:

  • I have updated CHANGELOG.md
  • I have updated the documentation (README.md, docs/, demos/)
  • I have updated the config schema (cli/src/config-schema.json)
  • I have added tests to cover my changes

Filter backtrace frames to show only project code (jj_lib and jj_cli),
removing noise from dependencies and standard library to make error
reports easier to read during testing.
…tests

So backtraces are shown without requiring the environment variable.
Disable color-eyre default features and keep track-caller so testutils avoids the capture-spantrace dependency stack.
@glehmann glehmann closed this Mar 23, 2026
@glehmann glehmann deleted the gln/testutils-backtrace-improvements-yvom branch March 23, 2026 20:50
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