ether-docs/04-TESTING/api/run-all.sh

30 lines
750 B
Bash
Executable File

#!/bin/bash
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
MODULES="auth space asset ops finance"
TOTAL_PASS=0
TOTAL_FAIL=0
TOTAL_COUNT=0
echo "=========================================="
echo " Ether PMS - All API Tests"
echo "=========================================="
echo ""
for module in $MODULES; do
script="$SCRIPT_DIR/$module/test-$module.sh"
if [ -f "$script" ]; then
echo ">>> Running $module API tests..."
echo "----------------------------------------"
bash "$script"
exit_code=$?
echo ""
else
echo ">>> SKIP: $module (test script not found: $script)"
echo ""
fi
done
echo "=========================================="
echo " All API Tests Complete"
echo "=========================================="