Try to run Patrol tests following #248 using either run_patrol.sh or run_native_android_tests.sh.
Note that we need to call patrol test instead of patrol drive now according to the docs.
E.g.:
patrol test --target integration_test/bundled_test.dart
Expected results
Tests should run.
Actual results
After installing the 2 apps (_com.example.cameraapp.test and _com.example.cameraapp) needed by Patrol to run the integration tests, nothing seem to happen:
seb@MacBook-Pro example % patrol test --target integration_test/bundled_test.dart
No device specified, using the first one (adb-68720a8-tWBeN4._adb-tls-connect._tcp.)
Every test target will be run 1 time(s)
• Building apk with entrypoint bundled_test.dart...
✓ Completed building apk with entrypoint bundled_test.dart (7.3s)
• Executing tests of apk with entrypoint bundled_test.dart on device adb-68720a8-tWBeN4._adb-tls-connect._tcp....
See the report at: file:///Users/seb/dev/workspace/camera_awesome/example/build/app/reports/androidTests/connected/index.html
✗ Failed to execute tests of apk with entrypoint bundled_test.dart on device adb-68720a8-tWBeN4._adb-tls-connect._tcp. (Gradle test execution failed with code 1) (357.3s)
Exception: Gradle test execution failed with code 1
See the logs above to learn what happened. Also consider running with --verbose. If the logs still aren't useful, then it's a bug - please report it.
FAIL bundled_test.dart on adb-68720a8-tWBeN4._adb-tls-connect._tcp.
The mentioned report showed:
Test run failed to complete. No test results
Steps to Reproduce
Try to run Patrol tests following #248 using either
run_patrol.sh
orrun_native_android_tests.sh
. Note that we need to callpatrol test
instead ofpatrol drive
now according to the docs. E.g.:patrol test --target integration_test/bundled_test.dart
Expected results
Tests should run.
Actual results
After installing the 2 apps (_com.example.cameraapp.test and _com.example.cameraapp) needed by Patrol to run the integration tests, nothing seem to happen:
The mentioned report showed:
Test run failed to complete. No test results
About your device
Your flutter version
flutter --version
``` Flutter 3.7.3 • channel stable • https://github.com/flutter/flutter.git Framework • revision 9944297138 (5 weeks ago) • 2023-02-08 15:46:04 -0800 Engine • revision 248290d6d5 Tools • Dart 2.19.2 • DevTools 2.20.1 ```