Add more checks to check-fit.sh
set -e
-if grep -nr "FIt(" tests/; then
- echo "Not OK. FIt exists somewhere in the testing code. Please remove it."
- exit 1
+for i in FIt FDescribe FContext FWhen FEntry FDescribeTable
+do
+ if grep -nr "$i(" tests/; then
+ echo -e "$i: Not OK. $i exists somewhere in the testing code. Please remove it.\n"
+ exitCode=1
else
- echo "OK"
+ echo -e "$i: OK\n"
fi
+done
+
+exit $exitCode
