[red-knot] mdtest output improvements #13875
Labels
help wanted
Contributions especially welcome
red-knot
Multi-file analysis & type inference
testing
Related to testing Ruff itself
Some ideas on how we could improve the mdtest output:
Remove redundant test name
The test name, e.g.
imports/errors
is now rendered in at least 3 places:mdtest_import_errors stdout
(cargo test
)/import/errors.md - Unresolved Imports - Unresolved import from statement
(mdtest)thread 'mdtest__import_errors' panicked at crates/red_knot_test/src/lib.rs:61:5:
It's even worse when using
nextest
I suggest that we change the
mdtest
header to just show the test-name, excluding the markdown file:File paths not clickable
The
errors.md:16
file paths aren't clickable for me because the paths' aren't relative to the workspace root. We should make the paths relative to the workspace root (and render them as relative and not absolute paths)Reduce indentation
I find the indentation of the inner errors distracting. I don't think we need it considering that we use blank lines and a bold title to group files.
The text was updated successfully, but these errors were encountered: