flutter_gherkin
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 ?
@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
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