1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

Use dart test (#1711)

This commit is contained in:
Brett Morgan
2023-03-26 02:32:44 +10:00
committed by GitHub
parent 604c82cd7c
commit 75b552d921

View File

@@ -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