Make 'run' print the command output
```git-check-assertions run test/git-check-assertions.bats assert_success git checkout HEAD~1 bin run test/git-check-assertions.bats assert_failure ```
This commit is contained in:
parent
b3db4fcf2b
commit
495f6757dd
2 changed files with 11 additions and 0 deletions
|
|
@ -305,3 +305,13 @@ commit_with_assertion() {
|
|||
assert_output --partial "Expected output to contain: xyz"
|
||||
assert_output --partial "Actual output: hello"
|
||||
}
|
||||
|
||||
@test "run should print command output" {
|
||||
git checkout -b feature
|
||||
commit_with_assertion $'run sh -c "echo -n hello; echo -n world"\nassert_success'
|
||||
|
||||
run git-check-assertions
|
||||
|
||||
assert_success
|
||||
assert_output --partial "helloworld"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue