diff --git a/.github/workflows/rust-tests.yml b/.github/workflows/rust-tests.yml index 6706715..729109b 100644 --- a/.github/workflows/rust-tests.yml +++ b/.github/workflows/rust-tests.yml @@ -28,11 +28,6 @@ jobs: toolchain: stable profile: minimal override: true - - - name: Setup tmate session - uses: mxschmitt/action-tmate@v3 - with: - limit-access-to-actor: false - uses: Swatinem/rust-cache@v2 diff --git a/crates/deno_task_shell/Cargo.toml b/crates/deno_task_shell/Cargo.toml index 8a3f909..655825e 100644 --- a/crates/deno_task_shell/Cargo.toml +++ b/crates/deno_task_shell/Cargo.toml @@ -28,7 +28,7 @@ pest = { git = "https://github.com/pest-parser/pest.git", branch = "master", fea pest_derive = "2.7.12" dirs = "5.0.1" pest_ascii_tree = { git = "https://github.com/prsabahrami/pest_ascii_tree.git", branch = "master" } -miette = "7.2.0" +miette = { version = "7.2.0", features = ["fancy"] } lazy_static = "1.4.0" [dev-dependencies] diff --git a/crates/tests/src/test_builder.rs b/crates/tests/src/test_builder.rs index bf62348..7b21062 100644 --- a/crates/tests/src/test_builder.rs +++ b/crates/tests/src/test_builder.rs @@ -117,9 +117,6 @@ impl TestBuilder { fn get_temp_dir(&mut self) -> &mut TempDir { if self.temp_dir.is_none() { self.temp_dir = Some(TempDir::new()); - let temp_dir_string = self.temp_dir_path().display().to_string(); - self.env_vars - .insert("TEMP_DIR".to_string(), temp_dir_string); } self.temp_dir.as_mut().unwrap() } @@ -238,6 +235,7 @@ impl TestBuilder { let (stderr, stderr_handle) = get_output_writer_and_handle(); let local_set = tokio::task::LocalSet::new(); + self.env_var("TEMP_DIR", &cwd.display().to_string()); let state = ShellState::new( self.env_vars.clone(), &cwd, @@ -266,8 +264,9 @@ impl TestBuilder { .expected_stderr_contains .replace("$TEMP_DIR", &temp_dir) ), - "\n\nFailed for: {}\nExpected stderr to contain: {}", + "\n\nFailed for: {}\nExpected stderr to contain: {}, {}", self.command, + stderr_output, self.expected_stderr_contains ); }