mirror of
https://github.com/eza-community/eza
synced 2024-10-02 22:23:45 +00:00
b2c424f4ca
This adds the nix feature to specify tests only to be run in the sandbox. Signed-off-by: Christina Sørensen <christina@cafkafk.com>
27 lines
460 B
Rust
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");
|
|
}
|