Skip to content

Commit

Permalink
chore(test): 🧹 fix display format of running tests
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Villard <[email protected]>
  • Loading branch information
eviweb committed Apr 25, 2022
1 parent 6744923 commit 984d783
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/insert-icon-test
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ declare -A messages_amended=(
["chore(scope): 🧹 lorem ipsum dolor sit amet"]="chore(scope): 🧹 lorem ipsum dolor sit amet"
)

echo -e "\e[1mInsert Icon Tests\e[21m:"
echo -e "\e[1mInsert Icon Tests\e[0m:"
echo -e "\n> Test messages without scope:"
for message in "${!messages_noscope[@]}"; do
assert_equals "${messages_noscope["${message}"]}" "$("$(bin_dir)"/insert-icon "${message}")"
Expand Down
3 changes: 2 additions & 1 deletion tests/run
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ lib_dir()

for testfile in "$(tests_dir)"/*-test; do
. "${testfile}"
echo -e "\n----------\n"
done

PASSED="$((TESTS - ERRORS))"
echo -e "-- \n${PASSED} passed tests / ${TESTS} tests - ${ERRORS} errors."
echo -e "${PASSED} passed tests / ${TESTS} tests - ${ERRORS} errors."

0 comments on commit 984d783

Please sign in to comment.