jonsamwell / flutter_gherkin

A Gherkin parsers and runner for Dart and Flutter which is very similar to cucumber
MIT License
206 stars 113 forks source link

[Help Request] Firebase TestLab Integration #197

Open yahyakara opened 2 years ago

yahyakara commented 2 years ago

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 ?

colleenvillon commented 2 years ago

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

haci56 commented 2 years ago

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

yahyakara commented 2 years ago

@jonsamwell Can you help about firebase 🙏

jonsamwell commented 2 years ago

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

umangdivyanshu commented 2 years ago

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