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 26, 2024
1 parent cafb48c commit 7024318
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 @@ -3,13 +3,14 @@
_COLOR_DEFAULT="$(tput sgr0)"
_COLOR_BOLD="$(tput bold)"
_COLOR_FAINT="$(tput dim)"
_COLOR_BLACK="$(tput setaf 0)"
_COLOR_FAILED="$(tput setaf 1)"
_COLOR_PASSED="$(tput setaf 2)"
_COLOR_SKIPPED="$(tput setaf 3)"
_COLOR_INCOMPLETE="$(tput setaf 6)"
_COLOR_SNAPSHOT="$(tput setaf 4)"
_COLOR_RETURN_ERROR="$(tput setab 1)"
_COLOR_RETURN_SUCCESS="$(tput setab 2)"
_COLOR_RETURN_SKIPPED="$(tput setab 3)"
_COLOR_RETURN_INCOMPLETE="$(tput setab 6)"
_COLOR_RETURN_SNAPSHOT="$(tput setab 4)"
_COLOR_RETURN_ERROR="$(tput setab 1)${_COLOR_BLACK}${_COLOR_BOLD}"
_COLOR_RETURN_SUCCESS="$(tput setab 2)${_COLOR_BLACK}${_COLOR_BOLD}"
_COLOR_RETURN_SKIPPED="$(tput setab 3)${_COLOR_BLACK}${_COLOR_BOLD}"
_COLOR_RETURN_INCOMPLETE="$(tput setab 6)${_COLOR_BLACK}${_COLOR_BOLD}"
_COLOR_RETURN_SNAPSHOT="$(tput 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 7024318

Please sign in to comment.