flutter_gherkin icon indicating copy to clipboard operation
flutter_gherkin copied to clipboard

How to run flutter gherkin test in any of the available cloud platform such as aws device farm / browserstack app automate or firbase test lab ?

Open amitkumar-qa opened this issue 2 years ago • 1 comments

@jonsamwell Any clue or idea would be appreciable. As we want to run gherkin tests in range of devices to check app quality. Looking forward to hearing from you soon.

Cheers

amitkumar-qa avatar May 06 '22 13:05 amitkumar-qa

Hi @amitkumar-qa

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 Jun 14 '22 05:06 umangdivyanshu