summaryrefslogtreecommitdiff
path: root/date-fns/scripts/test/countTests.sh
blob: 3db4daa68275413f37b03faff7bfe3c288b22488 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

# The script prints the total number of the examples in the test process.
#
# It's a part of the test process
#
# TODO: Write stats to Firebase and display the stats at the site.

count=$( cat tmp/tests_count.txt 2> /dev/null || echo 0 )

printf "\n%bSUITE: %s%b\n" "\x1B[32m" "$TEST_SUITE" "\x1B[0m"
printf "\n%bTOTAL TESTS COMPLETED: %s%b\n" "\x1B[32m" "$count" "\x1B[0m"

rm -f tmp/tests_count.txt