Skip to content

Commit eef9aea

Browse files
committed
feat: additional tests
1 parent 6e6b410 commit eef9aea

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/test_cli.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,20 @@ EOF
3131
)"
3232
}
3333

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+
EOF
45+
)"
46+
}
47+
3448
test_run_all_file_parameters() {
3549
bash_unit_output=$($BASH_UNIT \
3650
<(echo "test_one() { echo -n ; }") \

0 commit comments

Comments
 (0)