Skip to content

Commit

Permalink
chore: Upgrade to snapbox 0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Jun 4, 2024
1 parent d343301 commit 582532a
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 12 deletions.
4 changes: 2 additions & 2 deletions 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 tests/custom-panic/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ release = false
human-panic = { path = "../.." }

[dev-dependencies]
snapbox = { version = "0.5.14", features = ["cmd"] }
snapbox = { version = "0.6.4", features = ["cmd"] }
9 changes: 5 additions & 4 deletions tests/custom-panic/tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ fn debug() {
snapbox::cmd::Command::new(snapbox::cmd::cargo_bin!("custom-panic-test"))
.assert()
.stderr_eq_(snapbox::str![[r#"
thread 'main' panicked at tests/custom-panic/src/main.rs:11:5:
OMG EVERYTHING IS ON FIRE!!!
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
"#]])
thread 'main' panicked at tests/custom-panic/src/main.rs:11:5:
OMG EVERYTHING IS ON FIRE!!!
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
"#]])
.code(101);
}
2 changes: 1 addition & 1 deletion tests/single-panic/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ release = false
human-panic = { path = "../.." }

[dev-dependencies]
snapbox = { version = "0.5.14", features = ["cmd"] }
snapbox = { version = "0.6.4", features = ["cmd"] }
9 changes: 5 additions & 4 deletions tests/single-panic/tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ fn debug() {
snapbox::cmd::Command::new(snapbox::cmd::cargo_bin!("single-panic-test"))
.assert()
.stderr_eq_(snapbox::str![[r#"
thread 'main' panicked at tests/single-panic/src/main.rs:7:5:
OMG EVERYTHING IS ON FIRE!!!
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
"#]])
thread 'main' panicked at tests/single-panic/src/main.rs:7:5:
OMG EVERYTHING IS ON FIRE!!!
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
"#]])
.code(101);
}

0 comments on commit 582532a

Please sign in to comment.