Skip to content

Commit

Permalink
Remove icons to table data
Browse files Browse the repository at this point in the history
  • Loading branch information
mpanchajanya committed Apr 19, 2023
1 parent 56bb4c8 commit 26a5af9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions hack/scripts/process-ginkgo-test-results.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fi
json=$(cat "$1")

# Print the table header
echo "| :memo: Test Suite Description | Total Tests | :white_check_mark: Passed | Failed |"
echo "| :memo: Test Suite Description | Total Tests | Passed | Failed |"
echo "| --- | ---: | ---: | ---: |"

# Counters for total tests
Expand Down Expand Up @@ -57,16 +57,16 @@ for suite in $(echo "$json" | jq -r '.[] | @base64'); do

# Print the suite row with color and icon depending on the result
if [ "$suite_failed" -eq 0 ]; then
echo "| $suite_description | $suite_tests | :white_check_mark: $suite_passed | $suite_failed |"
echo "| $suite_description | $suite_tests | $suite_passed | $suite_failed |"
else
echo "| $suite_description | $suite_tests | :white_check_mark: $suite_passed | :x: $suite_failed |"
echo "| $suite_description | $suite_tests | $suite_passed | :x: $suite_failed |"
fi

done

# Print the total line with color and icon depending on the result
if [ "$total_failed" -eq 0 ]; then
echo "| **Total** | $total_tests | :white_check_mark: $total_passed | $total_failed |"
echo "| **Total** | **$total_tests** | **$total_passed** | **$total_failed** |"
else
echo "| **Total** | $total_tests | :white_check_mark: $total_passed | :x: $total_failed |"
echo "| **Total** | **$total_tests** | **$total_passed** | :x: **$total_failed** |"
fi

0 comments on commit 26a5af9

Please sign in to comment.