File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ test_tap_format_for_one_succesfull_test() {
1212 assert_equals \
1313" \
1414# Running tests in code
15- ok - test_ok\
16- " \
15+ ok - test_ok
16+ 1..1 " \
1717" $( bash_unit_out_for_code << EOF
1818 test_ok() {
1919 assert true
@@ -27,8 +27,8 @@ test_tap_format_for_one_failing_test() {
2727" \
2828# Running tests in code
2929not ok - test_not_ok
30- # code:2:test_not_ok()\
31- " \
30+ # code:2:test_not_ok()
31+ 1..1 " \
3232" $( bash_unit_out_for_code << EOF
3333 test_not_ok() {
3434 assert false
@@ -41,8 +41,8 @@ test_tap_format_for_one_pending_test() {
4141 assert_equals \
4242" \
4343# 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 " \
4646" $( bash_unit_out_for_code << EOF
4747 pending_not_yet_implemented() {
4848 assert false
@@ -58,8 +58,8 @@ test_tap_format_for_failing_test_with_stdout_stderr_outputs() {
5858not ok - test_not_ok
5959# out> message on stdout
6060# err> message on stderr
61- # code:2:test_not_ok()\
62- " \
61+ # code:2:test_not_ok()
62+ 1..1 " \
6363" $( bash_unit_out_for_code << EOF
6464 test_not_ok() {
6565 assert_fails "echo message on stdout ; echo message on stderr >&2"
@@ -74,8 +74,8 @@ test_assertion_message_is_tap_formatted() {
7474# Running tests in code
7575not ok - test_not_ok
7676# obvious failure
77- # code:2:test_not_ok()\
78- " \
77+ # code:2:test_not_ok()
78+ 1..1 " \
7979" $( bash_unit_out_for_code << EOF
8080 test_not_ok() {
8181 assert_fails true "obvious failure"
@@ -91,8 +91,8 @@ test_multi_lines_assertion_message_is_tap_formatted() {
9191not ok - test_not_ok
9292# obvious failure
9393# on multiple lines
94- # code:2:test_not_ok()\
95- " \
94+ # code:2:test_not_ok()
95+ 1..1 " \
9696" $( bash_unit_out_for_code << EOF
9797 test_not_ok() {
9898 assert_fails true "obvious failure\non multiple lines"
You can’t perform that action at this time.
0 commit comments