Skip to content

Commit

Permalink
fix(colors): increase contrast of test results
Browse files Browse the repository at this point in the history
  • Loading branch information
h0adp0re committed Feb 27, 2024
1 parent a4657ea commit 4fe733e
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 17 deletions.
11 changes: 6 additions & 5 deletions src/colors.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@ t_put() {
_COLOR_DEFAULT="$(t_put sgr0)"
_COLOR_BOLD="$(t_put bold)"
_COLOR_FAINT="$(t_put dim)"
_COLOR_BLACK="$(t_put setaf 0)"
_COLOR_FAILED="$(t_put setaf 1)"
_COLOR_PASSED="$(t_put setaf 2)"
_COLOR_SKIPPED="$(t_put setaf 3)"
_COLOR_INCOMPLETE="$(t_put setaf 6)"
_COLOR_SNAPSHOT="$(t_put setaf 4)"
_COLOR_RETURN_ERROR="$(t_put setab 1)"
_COLOR_RETURN_SUCCESS="$(t_put setab 2)"
_COLOR_RETURN_SKIPPED="$(t_put setab 3)"
_COLOR_RETURN_INCOMPLETE="$(t_put setab 6)"
_COLOR_RETURN_SNAPSHOT="$(t_put setab 4)"
_COLOR_RETURN_ERROR="$(t_put setab 1)${_COLOR_BLACK}${_COLOR_BOLD}"
_COLOR_RETURN_SUCCESS="$(t_put setab 2)${_COLOR_BLACK}${_COLOR_BOLD}"
_COLOR_RETURN_SKIPPED="$(t_put setab 3)${_COLOR_BLACK}${_COLOR_BOLD}"
_COLOR_RETURN_INCOMPLETE="$(t_put setab 6)${_COLOR_BLACK}${_COLOR_BOLD}"
_COLOR_RETURN_SNAPSHOT="$(t_put setab 4)${_COLOR_BLACK}${_COLOR_BOLD}"
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ Running ./tests/acceptance/fixtures/test_bashunit_when_a_test_fail.sh

Tests:  4 passed, 1 failed, 5 total
Assertions: 6 passed, 1 failed, 7 total
Some tests failed
Some tests failed
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ Running ./tests/acceptance/fixtures/test_bashunit_when_a_test_fail.sh

Tests:  4 passed, 1 failed, 5 total
Assertions: 6 passed, 1 failed, 7 total
Some tests failed
Some tests failed
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ Running ./tests/acceptance/fixtures/tests_path/other_test.sh

Tests:  4 passed, 4 total
Assertions: 6 passed, 6 total
All tests passed
All tests passed
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ Running ./tests/acceptance/fixtures/tests_path/other_test.sh

Tests:  4 passed, 4 total
Assertions: 6 passed, 6 total
All tests passed
All tests passed
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ Running ./tests/acceptance/fixtures/tests_path/a_test.sh

Tests:  2 passed, 2 total
Assertions: 3 passed, 3 total
All tests passed
All tests passed
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
....
Tests:  4 passed, 4 total
Assertions: 6 passed, 6 total
All tests passed
All tests passed
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
....
Tests:  4 passed, 4 total
Assertions: 6 passed, 6 total
All tests passed
All tests passed
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ Running ./tests/acceptance/fixtures/test_bashunit_when_a_test_passes.sh

Tests:  4 passed, 4 total
Assertions: 6 passed, 6 total
All tests passed
All tests passed
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ Running ./tests/acceptance/fixtures/test_bashunit_when_a_test_passes.sh

Tests:  4 passed, 4 total
Assertions: 6 passed, 6 total
All tests passed
All tests passed
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

Tests:  0 total
Assertions: 0 total
No tests found
No tests found
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ Running tests/acceptance/fixtures/tests_path/other_test.sh

Tests:  4 passed, 4 total
Assertions: 6 passed, 6 total
All tests passed
All tests passed
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ Running tests/acceptance/fixtures/tests_path/other_test.sh

Tests:  4 passed, 4 total
Assertions: 6 passed, 6 total
All tests passed
All tests passed

0 comments on commit 4fe733e

Please sign in to comment.