File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ test_tap_format_for_one_succesfull_test() {
12
12
assert_equals \
13
13
" \
14
14
# Running tests in code
15
- ok - test_ok\
16
- " \
15
+ ok - test_ok
16
+ 1..1 " \
17
17
" $( bash_unit_out_for_code << EOF
18
18
test_ok() {
19
19
assert true
@@ -27,8 +27,8 @@ test_tap_format_for_one_failing_test() {
27
27
" \
28
28
# Running tests in code
29
29
not ok - test_not_ok
30
- # code:2:test_not_ok()\
31
- " \
30
+ # code:2:test_not_ok()
31
+ 1..1 " \
32
32
" $( bash_unit_out_for_code << EOF
33
33
test_not_ok() {
34
34
assert false
@@ -41,8 +41,8 @@ test_tap_format_for_one_pending_test() {
41
41
assert_equals \
42
42
" \
43
43
# Running tests in code
44
- ok - pending_not_yet_implemented # todo test to be written\
45
- " \
44
+ ok - pending_not_yet_implemented # todo test to be written
45
+ 1..0 " \
46
46
" $( bash_unit_out_for_code << EOF
47
47
pending_not_yet_implemented() {
48
48
assert false
@@ -58,8 +58,8 @@ test_tap_format_for_failing_test_with_stdout_stderr_outputs() {
58
58
not ok - test_not_ok
59
59
# out> message on stdout
60
60
# err> message on stderr
61
- # code:2:test_not_ok()\
62
- " \
61
+ # code:2:test_not_ok()
62
+ 1..1 " \
63
63
" $( bash_unit_out_for_code << EOF
64
64
test_not_ok() {
65
65
assert_fails "echo message on stdout ; echo message on stderr >&2"
@@ -74,8 +74,8 @@ test_assertion_message_is_tap_formatted() {
74
74
# Running tests in code
75
75
not ok - test_not_ok
76
76
# obvious failure
77
- # code:2:test_not_ok()\
78
- " \
77
+ # code:2:test_not_ok()
78
+ 1..1 " \
79
79
" $( bash_unit_out_for_code << EOF
80
80
test_not_ok() {
81
81
assert_fails true "obvious failure"
@@ -91,8 +91,8 @@ test_multi_lines_assertion_message_is_tap_formatted() {
91
91
not ok - test_not_ok
92
92
# obvious failure
93
93
# on multiple lines
94
- # code:2:test_not_ok()\
95
- " \
94
+ # code:2:test_not_ok()
95
+ 1..1 " \
96
96
" $( bash_unit_out_for_code << EOF
97
97
test_not_ok() {
98
98
assert_fails true "obvious failure\non multiple lines"
You can’t perform that action at this time.
0 commit comments