Asserts are nearly undebuggable without a backtrace to the actual panic #359
Labels
enhancement
Improvement of existing features or bugfix
k::UI/UX
UI (user interface) and UX (user experience) changes
Milestone
Cucumber-rs intentionally installs a panic handler that does nothing. This makes debugging asserts very difficult if there are multiple possible assert locations, as we're given only the panic message.
e.g.
Rust code
Feature File:
Command:
cargo test --test example -- -vvvvvvvv
Expected Behavior:
I expect to be able to get any information on where a failure occurred, ideally with a full backtrace (as an option, it would be okay to only include the panic location by default, but it should be possible to get a full backtrace)
Actual Output:
The output contains the panic message, but no information about where the original panic occurred. The actual panic backtrace simply points to the location of the call to
run_and_exit
(also: should the tests failing really be a panic or just a non-zero exit code and message?).The text was updated successfully, but these errors were encountered: