flutter_gherkin icon indicating copy to clipboard operation
flutter_gherkin copied to clipboard

[Help Request] Firebase TestLab Integration

Open yahyakara opened this issue 3 years ago • 5 comments

Hi everyone, I am using the flutter gherkin rc 9 package, I wonder is anyone using firebase test lab, How can we run the tests on the firebase test labs. Is it possible ? Does anyone have any advices and experience for run the tests on cloud ?

yahyakara avatar Jan 24 '22 20:01 yahyakara

I have the same problem, I hope someone can help us with this.

colleenvillon avatar Jan 27 '22 22:01 colleenvillon

Thats what i look for. Helpful answers would be appreciate.

haci56 avatar Jan 28 '22 09:01 haci56

@jonsamwell Can you help about firebase 🙏

yahyakara avatar Jan 29 '22 14:01 yahyakara

Sorry I am really struggling to find any time at the moment. I run my tests on AzureDevops and I have been finding then failing a bit more often now. I think Microsoft have reduced the power of the VMs so the emulators are stuggling to run on single cores. So I have been meaning to investigate Firebase TestLab. Although as always it is just time I unfortunately do not have at the moment. Help from the community here would be great

jonsamwell avatar Jan 30 '22 23:01 jonsamwell

Hi @yahyakara @haci56 @colleenvillon

I am using Firebase Test Lab to run my tests.

First you have to create a MainActivityTest.java file and add native android dependencies in android/app/build.gradle file. You can get the code and follow the steps mentioned here - https://github.com/flutter/flutter/tree/master/packages/integration_test#android-device-testing

After that, you can create the apks using below commands and upload on Firebase Test Lab to run an instrumentation test on Android device.

pushd android ./gradlew app:assembleAndroidTest ./gradlew app:assembleDebug -Ptarget=integration_test/gherkin_suite_test.dart popd

umangdivyanshu avatar Feb 07 '22 13:02 umangdivyanshu