eza/tests/cli_tests.rs
Christina Sørensen b2c424f4ca
test(flake/cargo): add nix feature
This adds the nix feature to specify tests only to be run in the sandbox.

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-09-12 12:38:10 +02:00

27 lines
460 B
Rust

#[test]
fn cli_all_tests() {
trycmd::TestCases::new()
.case("tests/cmd/*_all.toml");
}
#[test]
#[cfg(unix)]
fn cli_unix_tests() {
trycmd::TestCases::new()
.case("tests/cmd/*_unix.toml");
}
#[test]
#[cfg(windows)]
fn cli_windows_tests() {
trycmd::TestCases::new()
.case("tests/cmd/*_windows.toml");
}
#[test]
#[cfg(feature="nix")]
fn cli_nix_tests() {
trycmd::TestCases::new()
.case("tests/cmd/*_nix.toml");
}