Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AVRO-3910: [Rust] Replace color-backtrace with better-panic for the tests #2596

Merged
merged 1 commit into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
152 changes: 103 additions & 49 deletions lang/rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lang/rust/avro_test_helper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ readme = "README.md"

[dependencies]
anyhow = { default-features = false, version = "1.0.75", features = ["std"] }
color-backtrace = { default-features = false, version = "0.5.1" }
better-panic = { default-features = false, version = "0.3.0" }
ctor = { default-features = false, version = "0.2.4" }
env_logger = { default-features = false, version = "0.10.0" }
lazy_static = { default-features = false, version = "1.4.0" }
Expand Down
6 changes: 5 additions & 1 deletion lang/rust/avro_test_helper/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ pub mod logger;
#[ctor]
fn before_all() {
// better stacktraces in tests
color_backtrace::install();
better_panic::Settings::new()
.most_recent_first(true)
.lineno_suffix(false)
.backtrace_first(true)
.install();

// enable logging in tests
logger::install();
Expand Down