Skip to content

Commit

Permalink
Add 'which' as dev-dependencies to detect 'fish' shell presence or not
Browse files Browse the repository at this point in the history
  • Loading branch information
nbigaouette committed Apr 10, 2022
1 parent 9dc15b2 commit 99f8e61
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ predicates = "2"
indoc = "1"
hygeia_test_helpers = { path = "hygeia_test_helpers" }
rstest = "0.12"
which = "4.2.5"
# pretty_assertions = "0.6"

[target.'cfg(not(target_os = "windows"))'.dev-dependencies.users]
Expand Down
5 changes: 5 additions & 0 deletions tests/integration/setup/fish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ use super::*;
#[cfg_attr(windows, ignore)]
#[test]
fn setup_fish_success_from_scratch() {
if let Err(which::Error::CannotFindBinaryPath) = which::which("fish") {
eprintln!("Shell 'fish' not found; cannot run unit test 'setup_fish_success_from_scratch'");
return;
}

let home = create_test_temp_dir!();
let hygeia_home = home.join(".hygeia");
let cwd = home.join("current_dir");
Expand Down

0 comments on commit 99f8e61

Please sign in to comment.