Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
files: ^tests/(.*/)?test_.*\.sh$
types: [shell]
pass_filenames: true
# Duplicated with different id name for convienience
# Duplicated with different id name for convenience
- id: bash_unit
name: Run tests with `bash_unit`
description: This hook runs tests using `bash_unit`
Expand Down
7 changes: 4 additions & 3 deletions bash_unit
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

# shellcheck disable=2317 # Ignore unreachable - most function are not called.
# shellcheck disable=2155 # Ignore Declare and assign separately
# spellchecker: ignore NOCOLOR SHUF

VERSION=v2.3.3

Expand Down Expand Up @@ -407,7 +408,7 @@ text_format() {
notify_stack() {
color "$YELLOW"
}
notify_suites_succeded() {
notify_suites_succeeded() {
echo -n "Overall result: SUCCESS" | pretty_success
echo
}
Expand Down Expand Up @@ -460,7 +461,7 @@ tap_format() {
notify_stack() {
"$SED" 's:^:# :' | color "$YELLOW"
}
notify_suites_succeded() {
notify_suites_succeeded() {
local message="$1"
echo "1..$message"
}
Expand Down Expand Up @@ -595,7 +596,7 @@ if ((failure))
then
notify_suites_failed "$(cat "${TEST_COUNT_FILE}")"
else
notify_suites_succeded "$(cat "${TEST_COUNT_FILE}")"
notify_suites_succeeded "$(cat "${TEST_COUNT_FILE}")"
fi

exit $failure
2 changes: 1 addition & 1 deletion tests/test_core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,6 @@ mute() {
notify_stack () { $CAT >/dev/null ; }
notify_stdout () { : ; }
notify_stderr () { : ; }
notify_suites_succeded () { : ; }
notify_suites_succeeded () { : ; }
notify_suites_failed () { : ; }
}
2 changes: 1 addition & 1 deletion tests/test_tap_format
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test_bash_unit_rejects_invalid_format() {
assert_fails "$BASH_UNIT -f invalid_format"
}

test_tap_format_for_one_succesfull_test() {
test_tap_format_for_one_successful_test() {
assert_equals \
"\
# Running tests in code
Expand Down