I am trying to run my integration test on Firebase Test Lab
.
flutter build apk -t lib/main_dev.dart
./gradlew app:assembleAndroidTest -Ptarget=lib/main_dev.dart
./gradlew app:assembleDebug -Ptarget=integration_test/login_test.dart
This code generates app-debug-androidTest.apk
and app-debug.apk
and once I upload them in Test Lab
Test are executed perfectly.
Now the issue is I have many test files under integration_test
. I am not sure how to create a app-debug-androidTest.apk
that includes all the testcases under integration_test
.
I did try the following:
flutter build apk -t lib/main_dev.dart
./gradlew app:assembleAndroidTest -Ptarget=lib/main_dev.dart
./gradlew app:assembleDebug -Ptarget=test_driver/integration_test.dart
but this stuck test at black screen which is I thing weird but a correct behavior as while running the integration test in local device also we need to provide target along with the driver.
So for Local I have a script
flutter drive \
--driver=test_driver/integration_test.dart \
--target=integration_test/login_test.dart
flutter drive \
--driver=test_driver/integration_test.dart \
--target=integration_test/register_test.dart
which runs the all the Integration code.
So my question is how to upload all the test cases.
Or do we have to make build for each test case
./gradlew app:assembleDebug -Ptarget=integration_test/login_test.dart
then upload it to the Test Lab then again
./gradlew app:assembleDebug -Ptarget=integration_test/register_test.dart
and upload again?