Verify that stderr is taken into account
This commit is contained in:
parent
b57d527d6e
commit
475b0c6fa1
1 changed files with 9 additions and 0 deletions
|
|
@ -170,3 +170,12 @@ commit_with_assertion() {
|
|||
assert_output --partial "Expected output to equal: goodbye"
|
||||
assert_output --partial "Actual output: hello"
|
||||
}
|
||||
|
||||
@test "assert_output should also check stderr output" {
|
||||
git checkout -b feature
|
||||
commit_with_assertion $'run sh -c "echo err 1>&2"\nassert_output err'
|
||||
|
||||
run git-check-assertions
|
||||
|
||||
assert_success
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue