diff --git a/tool/flutter_ci_script_shared.sh b/tool/flutter_ci_script_shared.sh index 1a451ee55..2842c945f 100644 --- a/tool/flutter_ci_script_shared.sh +++ b/tool/flutter_ci_script_shared.sh @@ -20,7 +20,12 @@ function ci_projects () { # Run the actual tests. if [ -d "test" ] then - flutter test + if grep -q "flutter:" "pubspec.yaml"; then + flutter test + else + # If the project is not a Flutter project, use the Dart CLI. + dart test + fi fi popd