apollo_infra_utils 0.18.0-dev.0

Infrastructure utility.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use rstest::rstest;

use crate::command::create_shell_command;

#[rstest]
#[tokio::test]
async fn create_shell_command_example() {
    let mut ls_command = create_shell_command("ls");
    let output = ls_command.output().await.expect("Failed to execute command");
    let stdout = String::from_utf8_lossy(&output.stdout);

    assert!(output.status.success());
    // Project root should contain the `crates` directory.
    assert!(stdout.contains("crates"));
}