We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2351dad commit 12a2fdfCopy full SHA for 12a2fdf
tests/test_cli.sh
@@ -31,6 +31,20 @@ EOF
31
)"
32
}
33
34
+test_exit_code_not_0_in_case_of_non_zero_exit_code() {
35
+ assert_fails "$BASH_UNIT <($CAT << EOF
36
+function test_fails() { false ; }
37
+EOF
38
+)"
39
+}
40
+
41
+test_exit_code_0_in_case_of_zero_exit_code() {
42
+ assert "$BASH_UNIT <($CAT << EOF
43
+function test_succeeds() { true ; }
44
45
46
47
48
test_run_all_file_parameters() {
49
bash_unit_output=$($BASH_UNIT \
50
<(echo "test_one() { echo -n ; }") \
0 commit comments