diff --git a/tests/cli_subcommands.rs b/tests/cli_subcommands.rs index d475bc2..c2a830c 100644 --- a/tests/cli_subcommands.rs +++ b/tests/cli_subcommands.rs @@ -5,7 +5,10 @@ // and can be invoked with various argument combinations. use assert_cmd::Command; -use predicates::{prelude::PredicateBooleanExt, str::contains}; +use predicates::{ + prelude::PredicateBooleanExt, + str::{contains, is_match}, +}; // ============================================================================= // GitHub Scan Subcommand Tests @@ -499,7 +502,7 @@ mod bitbucket { .unwrap() .args(["scan", "bitbucket", "--help"]) .assert() - .stdout(contains("kingfisher scan bitbucket [OPTIONS]")); + .stdout(is_match(r"kingfisher(\\.exe)? scan bitbucket \[OPTIONS\]").unwrap()); } #[test]