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

Commit 2d0375b

Browse files
committed
wip: failing test
1 parent 55e054e commit 2d0375b

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

tests/recording.rs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
#[path = "./utils.rs"]
99
mod utils;
1010

11+
use quale::which;
1112
use scriptkeeper::context::Context;
13+
use scriptkeeper::utils::path_to_string;
1214
use scriptkeeper::{cli, run_main, R};
1315
use test_utils::{assert_eq_yaml, trim_margin, TempFile};
1416

@@ -150,3 +152,24 @@ fn records_command_exitcodes() -> R<()> {
150152
"#,
151153
)
152154
}
155+
156+
#[test]
157+
#[ignore]
158+
fn records_stdout_of_commands() -> R<()> {
159+
let echo = which("echo").ok_or("echo not found in $PATH")?;
160+
test_recording(
161+
&format!(
162+
"
163+
|#!/usr/bin/env bash
164+
|{} foo > /dev/null
165+
",
166+
path_to_string(&echo)?
167+
),
168+
"
169+
|protocols:
170+
| - protocol:
171+
| - command: echo foo
172+
| stdout: foo
173+
",
174+
)
175+
}

0 commit comments

Comments
 (0)