diff --git a/packages/mediapipe-task-text/pubspec.yaml b/packages/mediapipe-task-text/pubspec.yaml index 42aa1b3..00fc70c 100644 --- a/packages/mediapipe-task-text/pubspec.yaml +++ b/packages/mediapipe-task-text/pubspec.yaml @@ -21,6 +21,8 @@ environment: dependencies: async: ^2.11.0 ffi: ^2.1.0 + flutter: + sdk: flutter http: ^1.1.0 logging: ^1.2.0 mediapipe_core: ^0.0.1 @@ -31,4 +33,5 @@ dependencies: dev_dependencies: ffigen: ^9.0.1 lints: ^2.0.0 - test: ^1.21.0 + flutter_test: + sdk: flutter diff --git a/packages/mediapipe-task-text/test/language_detector_executor_test.dart b/packages/mediapipe-task-text/test/language_detector_executor_test.dart index ed1f23e..c653185 100644 --- a/packages/mediapipe-task-text/test/language_detector_executor_test.dart +++ b/packages/mediapipe-task-text/test/language_detector_executor_test.dart @@ -10,7 +10,7 @@ import 'dart:io' as io; import 'package:path/path.dart' as path; import 'package:mediapipe_core/io.dart'; import 'package:mediapipe_text/io.dart'; -import 'package:test/test.dart'; +import 'package:flutter_test/flutter_test.dart'; void main() { final pathToModel = path.joinAll([ diff --git a/packages/mediapipe-task-text/test/language_detector_result_test.dart b/packages/mediapipe-task-text/test/language_detector_result_test.dart index 86de763..70e57d9 100644 --- a/packages/mediapipe-task-text/test/language_detector_result_test.dart +++ b/packages/mediapipe-task-text/test/language_detector_result_test.dart @@ -8,7 +8,7 @@ import 'package:mediapipe_core/io.dart'; import 'package:mediapipe_text/io.dart'; import 'package:mediapipe_text/src/io/third_party/mediapipe/generated/mediapipe_text_bindings.dart' as bindings; -import 'package:test/test.dart'; +import 'package:flutter_test/flutter_test.dart'; void main() { group('LanguageDetectorResult.native should', () { diff --git a/packages/mediapipe-task-text/test/text_classifier_executor_test.dart b/packages/mediapipe-task-text/test/text_classifier_executor_test.dart index 1402cac..987649f 100644 --- a/packages/mediapipe-task-text/test/text_classifier_executor_test.dart +++ b/packages/mediapipe-task-text/test/text_classifier_executor_test.dart @@ -10,7 +10,7 @@ import 'dart:io' as io; import 'package:path/path.dart' as path; import 'package:mediapipe_core/io.dart'; import 'package:mediapipe_text/io.dart'; -import 'package:test/test.dart'; +import 'package:flutter_test/flutter_test.dart'; void main() { final pathToModel = path.joinAll([ diff --git a/packages/mediapipe-task-text/test/text_classifier_result_test.dart b/packages/mediapipe-task-text/test/text_classifier_result_test.dart index 7371a52..1f39159 100644 --- a/packages/mediapipe-task-text/test/text_classifier_result_test.dart +++ b/packages/mediapipe-task-text/test/text_classifier_result_test.dart @@ -10,7 +10,7 @@ import 'package:mediapipe_core/src/io/third_party/mediapipe/generated/mediapipe_ as core_bindings; import 'package:mediapipe_text/src/io/third_party/mediapipe/generated/mediapipe_text_bindings.dart' as bindings; -import 'package:test/test.dart'; +import 'package:flutter_test/flutter_test.dart'; void main() { group('TextClassifierResult.native should', () { diff --git a/packages/mediapipe-task-text/test/text_embedder_executor_test.dart b/packages/mediapipe-task-text/test/text_embedder_executor_test.dart index fe455cb..aecff69 100644 --- a/packages/mediapipe-task-text/test/text_embedder_executor_test.dart +++ b/packages/mediapipe-task-text/test/text_embedder_executor_test.dart @@ -10,7 +10,7 @@ import 'dart:io' as io; import 'package:path/path.dart' as path; import 'package:mediapipe_core/io.dart'; import 'package:mediapipe_text/io.dart'; -import 'package:test/test.dart'; +import 'package:flutter_test/flutter_test.dart'; void main() { final pathToModel = path.joinAll([ diff --git a/packages/mediapipe-task-text/test/text_embedder_result_test.dart b/packages/mediapipe-task-text/test/text_embedder_result_test.dart index 78c3727..eb9ba88 100644 --- a/packages/mediapipe-task-text/test/text_embedder_result_test.dart +++ b/packages/mediapipe-task-text/test/text_embedder_result_test.dart @@ -10,7 +10,7 @@ import 'package:mediapipe_core/src/io/third_party/mediapipe/generated/mediapipe_ as core_bindings; import 'package:mediapipe_text/src/io/third_party/mediapipe/generated/mediapipe_text_bindings.dart' as bindings; -import 'package:test/test.dart'; +import 'package:flutter_test/flutter_test.dart'; void main() { group('TextEmbedderResult.native should', () { diff --git a/tool/ci_script_shared.sh b/tool/ci_script_shared.sh index e8f4760..093512b 100644 --- a/tool/ci_script_shared.sh +++ b/tool/ci_script_shared.sh @@ -61,7 +61,8 @@ function ci_package () { # Run the actual tests if they exist. if [ -d "test" ] then - dart --enable-experiment=native-assets test + # dart --enable-experiment=native-assets test + flutter test fi if [ -f "/Users/runner/work/flutter-mediapipe/flutter-mediapipe/packages/mediapipe-task-text/build/live-run-build-log.txt" ]