eza/tests/cli_tests.rs
Christina Sørensen 4cd9731c15
test(local): move classify tests to local
Here, we introduce the `nix-local` feature, for features meant only
to exist locally in the nix sandbox.

This is an attempt to avoid the CI runner's unit testing, as that fails
to set the grid width correctly.

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-10-05 14:59:48 +02:00

29 lines
559 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");
}
#[test]
#[cfg(feature = "nix-local")]
fn cli_nix_local_tests() {
trycmd::TestCases::new().case("tests/cmd/*_nix_local.toml");
}