Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
wip: failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
soenkehahn committed Mar 22, 2019
1 parent 332525c commit 1c4af1b
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/recording.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
#[path = "./utils.rs"]
mod utils;

use quale::which;
use scriptkeeper::context::Context;
use scriptkeeper::utils::path_to_string;
use scriptkeeper::{cli, run_main, R};
use test_utils::{assert_eq_yaml, trim_margin, TempFile};

Expand Down Expand Up @@ -150,3 +152,24 @@ fn records_command_exitcodes() -> R<()> {
"#,
)
}

#[test]
#[ignore]
fn records_stdout_of_commands() -> R<()> {
let echo = which("echo").ok_or("echo not found in $PATH")?;
test_recording(
&format!(
"
|#!/usr/bin/env bash
|{} foo > /dev/null
",
path_to_string(&echo)?
),
"
|protocols:
| - protocol:
| - command: echo foo
| stdout: foo
",
)
}

0 comments on commit 1c4af1b

Please sign in to comment.