Skip to content

Commit

Permalink
desktop: Fix end-to-end tests being environment sensitive.
Browse files Browse the repository at this point in the history
  • Loading branch information
kpreid committed Oct 26, 2023
1 parent f35e5bb commit e5de7ad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions all-is-cubes-desktop/tests/end-to-end.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
fn trycmd_tests() {
let tc = trycmd::TestCases::new();

// Prevent `anyhow` from printing backtraces if it otherwise would due to env having
// "RUST_BACKTRACE=1", because they'd cause our error output tests to fail.
// Docs: https://docs.rs/anyhow/1.0.75/anyhow/index.html#details
tc.env("RUST_LIB_BACKTRACE", "0");

tc.insert_var("[DESKTOPVERSION]", env!("CARGO_PKG_VERSION"))
.unwrap();
tc.case("tests/end-to-end/*.toml");
Expand Down

0 comments on commit e5de7ad

Please sign in to comment.