Files
sharedinbox/scripts/run_widget_tests.sh
T

14 lines
322 B
Bash
Raw Normal View History

2026-04-17 10:05:31 +02:00
#!/usr/bin/env bash
set -euo pipefail
START=$(date +%s)
tmp=$(mktemp)
trap 'rm -f "$tmp"' EXIT
if fvm flutter test test/widget/ --no-pub --reporter expanded >"$tmp" 2>&1; then
2026-04-17 10:05:31 +02:00
grep -E "^All [0-9]+ tests passed" "$tmp" || tail -1 "$tmp"
else
cat "$tmp"
exit 1
fi
END=$(date +%s)
echo "test-widget: $((END - START))s"