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

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
soenkehahn committed Apr 4, 2019
1 parent f2ed9e1 commit a36502a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ scripts:

dev:
clear ; printf "\e[3J"
cargo test --lib --all --color=always --features 'dev test' -- --test-threads=1 --quiet
# cargo build --features=dev
cargo test -v --bins --lib --all --color=always --features 'dev test' -- --test-threads=1 --quiet

run_bigger:
cargo run -- tests/examples/bigger/script
Expand Down
4 changes: 1 addition & 3 deletions src/executable_mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl ExecutableMock {
Ok(ExitCode(exitcode))
}
Config::Wrapper { executable } => {
eprintln!("wrapper: {:?}", executable);
eprintln!("wrapper: {:?}", fs::read(executable));
Ok(ExitCode(42))
}
}
Expand Down Expand Up @@ -120,7 +120,6 @@ mod test {
}

#[test]
#[ignore]
fn creates_an_executable_that_exits_with_the_given_exitcode() -> R<()> {
let executable_mock = ExecutableMock::new(
&Context::new_mock(),
Expand All @@ -143,7 +142,6 @@ mod test {
use test_utils::TempFile;

#[test]
#[ignore]
fn executes_the_given_command() -> R<()> {
let temp_dir = TempDir::new("test")?;
let path = temp_dir.path().join("foo.txt");
Expand Down

0 comments on commit a36502a

Please sign in to comment.