-
Notifications
You must be signed in to change notification settings - Fork 203
Open
Labels
Description
fail [message]
Fails the test immediately.
I thus tried the following code.
$ cat t.sh
#!/bin/bash
testA() {
fail "A"
fail "B"
}
source shunit2
$ ./t.sh
testA
ASSERT:A
ASSERT:B
shunit2:ERROR testA() returned non-zero return code.
Ran 1 test.
FAILED (failures=2)
Because I was told fail fails the test immediately, I expect to only see ASSERT:A. However, I see ASSERT:A and ASSERT:B.
I don't know if it's a documentation bug or code bug. Please fix.
My version is 2.1.9pre.
Reactions are currently unavailable