Skip to content

Commit 8af4aef

Browse files
committed
feat: add whitespace to test summary status
1 parent 4fe733e commit 8af4aef

13 files changed

+30
-18
lines changed

src/console_results.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,36 +65,36 @@ function console_results::render_result() {
6565
printf " %s total\n" "$total_assertions"
6666

6767
if [[ "$(state::get_tests_failed)" -gt 0 ]]; then
68-
printf "%s%s%s\n" "$_COLOR_RETURN_ERROR" "Some tests failed" "$_COLOR_DEFAULT"
68+
printf "\n%s%s%s\n" "$_COLOR_RETURN_ERROR" " Some tests failed " "$_COLOR_DEFAULT"
6969
console_results::print_execution_time
7070
exit 1
7171
fi
7272

7373
if [[ "$(state::get_tests_incomplete)" -gt 0 ]]; then
74-
printf "%s%s%s\n" "$_COLOR_RETURN_INCOMPLETE" "Some tests incomplete" "$_COLOR_DEFAULT"
74+
printf "\n%s%s%s\n" "$_COLOR_RETURN_INCOMPLETE" " Some tests incomplete " "$_COLOR_DEFAULT"
7575
console_results::print_execution_time
7676
exit 0
7777
fi
7878

7979
if [[ "$(state::get_tests_skipped)" -gt 0 ]]; then
80-
printf "%s%s%s\n" "$_COLOR_RETURN_SKIPPED" "Some tests skipped" "$_COLOR_DEFAULT"
80+
printf "\n%s%s%s\n" "$_COLOR_RETURN_SKIPPED" " Some tests skipped " "$_COLOR_DEFAULT"
8181
console_results::print_execution_time
8282
exit 0
8383
fi
8484

8585
if [[ "$(state::get_tests_snapshot)" -gt 0 ]]; then
86-
printf "%s%s%s\n" "$_COLOR_RETURN_SNAPSHOT" "Some snapshots created" "$_COLOR_DEFAULT"
86+
printf "\n%s%s%s\n" "$_COLOR_RETURN_SNAPSHOT" " Some snapshots created " "$_COLOR_DEFAULT"
8787
console_results::print_execution_time
8888
exit 0
8989
fi
9090

9191
if [[ $total_tests -eq 0 ]]; then
92-
printf "%s%s%s\n" "$_COLOR_RETURN_ERROR" "No tests found" "$_COLOR_DEFAULT"
92+
printf "\n%s%s%s\n" "$_COLOR_RETURN_ERROR" " No tests found " "$_COLOR_DEFAULT"
9393
console_results::print_execution_time
9494
exit 1
9595
fi
9696

97-
printf "%s%s%s\n" "$_COLOR_RETURN_SUCCESS" "All tests passed" "$_COLOR_DEFAULT"
97+
printf "\n%s%s%s\n" "$_COLOR_RETURN_SUCCESS" " All tests passed " "$_COLOR_DEFAULT"
9898
console_results::print_execution_time
9999
exit 0
100100
}

tests/acceptance/snapshots/bashunit_fail_test_sh.test_bashunit_when_a_test_fail_verbose_output_env.snapshot

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ Running ./tests/acceptance/fixtures/test_bashunit_when_a_test_fail.sh
99

1010
Tests:  4 passed, 1 failed, 5 total
1111
Assertions: 6 passed, 1 failed, 7 total
12-
Some tests failed
12+
13+
 Some tests failed 

tests/acceptance/snapshots/bashunit_fail_test_sh.test_bashunit_when_a_test_fail_verbose_output_option.snapshot

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ Running ./tests/acceptance/fixtures/test_bashunit_when_a_test_fail.sh
99

1010
Tests:  4 passed, 1 failed, 5 total
1111
Assertions: 6 passed, 1 failed, 7 total
12-
Some tests failed
12+
13+
 Some tests failed 

tests/acceptance/snapshots/bashunit_find_tests_command_line_test_sh.test_all_tests_files_with_wildcard.snapshot

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ Running ./tests/acceptance/fixtures/tests_path/other_test.sh
77

88
Tests:  4 passed, 4 total
99
Assertions: 6 passed, 6 total
10-
All tests passed
10+
11+
 All tests passed 

tests/acceptance/snapshots/bashunit_find_tests_command_line_test_sh.test_all_tests_files_within_a_directory.snapshot

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ Running ./tests/acceptance/fixtures/tests_path/other_test.sh
77

88
Tests:  4 passed, 4 total
99
Assertions: 6 passed, 6 total
10-
All tests passed
10+
11+
 All tests passed 

tests/acceptance/snapshots/bashunit_find_tests_command_line_test_sh.test_all_tests_files_within_a_file.snapshot

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ Running ./tests/acceptance/fixtures/tests_path/a_test.sh
44

55
Tests:  2 passed, 2 total
66
Assertions: 3 passed, 3 total
7-
All tests passed
7+
8+
 All tests passed 
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
....
22
Tests:  4 passed, 4 total
33
Assertions: 6 passed, 6 total
4-
All tests passed
4+
5+
 All tests passed 
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
....
22
Tests:  4 passed, 4 total
33
Assertions: 6 passed, 6 total
4-
All tests passed
4+
5+
 All tests passed 

tests/acceptance/snapshots/bashunit_pass_test_sh.test_bashunit_when_a_test_passes_verbose_output_env.snapshot

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ Running ./tests/acceptance/fixtures/test_bashunit_when_a_test_passes.sh
66

77
Tests:  4 passed, 4 total
88
Assertions: 6 passed, 6 total
9-
All tests passed
9+
10+
 All tests passed 

tests/acceptance/snapshots/bashunit_pass_test_sh.test_bashunit_when_a_test_passes_verbose_output_option.snapshot

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ Running ./tests/acceptance/fixtures/test_bashunit_when_a_test_passes.sh
66

77
Tests:  4 passed, 4 total
88
Assertions: 6 passed, 6 total
9-
All tests passed
9+
10+
 All tests passed 

0 commit comments

Comments
 (0)