Skip to content

Commit 2633819

Browse files
committed
fix(colors): increase contrast of test results
1 parent 09fee87 commit 2633819

13 files changed

+18
-17
lines changed

src/colors.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ t_put() {
1616
_COLOR_DEFAULT="$(t_put sgr0)"
1717
_COLOR_BOLD="$(t_put bold)"
1818
_COLOR_FAINT="$(t_put dim)"
19+
_COLOR_BLACK="$(t_put setaf 0)"
1920
_COLOR_FAILED="$(t_put setaf 1)"
2021
_COLOR_PASSED="$(t_put setaf 2)"
2122
_COLOR_SKIPPED="$(t_put setaf 3)"
2223
_COLOR_INCOMPLETE="$(t_put setaf 6)"
2324
_COLOR_SNAPSHOT="$(t_put setaf 4)"
24-
_COLOR_RETURN_ERROR="$(t_put setab 1)"
25-
_COLOR_RETURN_SUCCESS="$(t_put setab 2)"
26-
_COLOR_RETURN_SKIPPED="$(t_put setab 3)"
27-
_COLOR_RETURN_INCOMPLETE="$(t_put setab 6)"
28-
_COLOR_RETURN_SNAPSHOT="$(t_put setab 4)"
25+
_COLOR_RETURN_ERROR="$(t_put setab 1)${_COLOR_BLACK}${_COLOR_BOLD}"
26+
_COLOR_RETURN_SUCCESS="$(t_put setab 2)${_COLOR_BLACK}${_COLOR_BOLD}"
27+
_COLOR_RETURN_SKIPPED="$(t_put setab 3)${_COLOR_BLACK}${_COLOR_BOLD}"
28+
_COLOR_RETURN_INCOMPLETE="$(t_put setab 6)${_COLOR_BLACK}${_COLOR_BOLD}"
29+
_COLOR_RETURN_SNAPSHOT="$(t_put setab 4)${_COLOR_BLACK}${_COLOR_BOLD}"

tests/acceptance/snapshots/bashunit_fail_test_sh.test_bashunit_when_a_test_fail_verbose_output_env.snapshot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ 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+
Some tests failed

tests/acceptance/snapshots/bashunit_fail_test_sh.test_bashunit_when_a_test_fail_verbose_output_option.snapshot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ 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+
Some tests failed

tests/acceptance/snapshots/bashunit_find_tests_command_line_test_sh.test_all_tests_files_with_wildcard.snapshot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ 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+
All tests passed

tests/acceptance/snapshots/bashunit_find_tests_command_line_test_sh.test_all_tests_files_within_a_directory.snapshot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ 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+
All tests passed

tests/acceptance/snapshots/bashunit_find_tests_command_line_test_sh.test_all_tests_files_within_a_file.snapshot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ 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+
All tests passed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
....
22
Tests:  4 passed, 4 total
33
Assertions: 6 passed, 6 total
4-
All tests passed
4+
All tests passed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
....
22
Tests:  4 passed, 4 total
33
Assertions: 6 passed, 6 total
4-
All tests passed
4+
All tests passed

tests/acceptance/snapshots/bashunit_pass_test_sh.test_bashunit_when_a_test_passes_verbose_output_env.snapshot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ 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+
All tests passed

tests/acceptance/snapshots/bashunit_pass_test_sh.test_bashunit_when_a_test_passes_verbose_output_option.snapshot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ 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+
All tests passed

0 commit comments

Comments
 (0)