mirror of
https://github.com/linagora/tmail-flutter.git
synced 2026-12-05 16:08:46 +00:00
16 lines
525 B
Bash
Executable File
16 lines
525 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -eux
|
|
|
|
# Write the machine-readable report straight to a file instead of redirecting
|
|
# stdout: `flutter test` always runs an implicit `pub get` first, and that output
|
|
# would otherwise be captured into the report and invalidate the JSON. Keeping
|
|
# stdout free also leaves failure details visible in the CI log.
|
|
REPORT="test-report-$MODULES.json"
|
|
|
|
if [[ "$MODULES" == "default" ]]; then
|
|
flutter test --file-reporter="json:$REPORT"
|
|
else
|
|
flutter test --file-reporter="json:$REPORT" "$MODULES"
|
|
fi
|