Add unicode output #25
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Using a variable "OUTPUT", add a red cross for FAILURE and a green check mark for SUCCESS.
$ ./bash_unit tests/test_bash_unit.sh Running tests in tests/test_bash_unit.sh Running test_assert_equals_fails_when_not_equal... SUCCESS Running test_assert_equals_succeed_when_equal... SUCCESS Running test_assert_fail_fails... SUCCESS Running test_assert_fail_shows_stdout_stderr_on_failure... SUCCESS Running test_assert_fail_succeeds... SUCCESS Running test_assert_fails... SUCCESS Running test_assert_not_equals_fails_when_equal... SUCCESS Running test_assert_not_equals_succeeds_when_not_equal... SUCCESS Running test_assert_shows_stdout_stderr_on_failure... SUCCESS Running test_assert_status_code_fails... SUCCESS Running test_assert_status_code_shows_stdout_stderr_on_failure... SUCCESS Running test_assert_status_code_succeeds... SUCCESS Running test_assert_succeeds... SUCCESS Running test_bash_unit_changes_cwd_to_current_test_file_directory... SUCCESS Running test_bash_unit_runs_teardown_even_in_case_of_failure... SUCCESS Running test_bash_unit_succeed_when_no_failure_even_if_no_teardown... SUCCESS Running test_display_usage_when_test_file_does_not_exist... SUCCESS Running test_exit_code_not_0_in_case_of_failure... SUCCESS Running test_fail_fails... SUCCESS Running test_fail_prints_failure_message... SUCCESS Running test_fail_prints_where_is_error... SUCCESS Running test_fails_when_test_file_does_not_exist... SUCCESS Running test_fake_actually_fakes_the_command... SUCCESS Running test_fake_can_fake_inline... SUCCESS Running test_fake_echo_stdin_when_no_params... SUCCESS Running test_fake_exports_faked_in_subshells... SUCCESS Running test_fake_transmits_params_to_fake_code... SUCCESS Running test_one_test_should_stop_after_first_assertion_failure... SUCCESS Running test_run_all_file_parameters... SUCCESS Running test_run_all_tests_even_in_case_of_failure... SUCCESS Running test_run_only_tests_that_match_pattern... SUCCESSand :
Signed-off-by: Nicolas Lamirault nicolas.lamirault@gmail.com