Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
Description
https://bluxte.net/musings/2023/01/08/improving_failure_messages_rust_tests/
The idea is to use #[track_caller] attribute on a method that panics immediately.
This way the "useless" frames from the unwinding are not printed.
An extra benefit is the removal of calls to Result::unwrap() in the tests.
Attachments
Issue Links
- links to