diff --git a/.hastest.bats b/.hastest.bats index dcd9b91..9d03f39 100644 --- a/.hastest.bats +++ b/.hastest.bats @@ -20,3 +20,11 @@ [ "$status" -eq 1 ] [[ $output == *"✘ something-missing"* ]] } + +@test "status code reflect number of failed commands" { + HAS_ALLOW_UNSAFE=y run bash has something-missing make git foobar + + [ "$status" -eq 2 ] + [[ $output == *"✘ something-missing"* ]] + [[ $output == *"✘ foobar"* ]] +}