-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
patrol test: Uninstalling the app after the test was run #816
Comments
patrol:
android:
package_name: pl.leancode.patrol.example
app_name: "Patrol example"
ios:
bundle_id: pl.leancode.patrol.Example
app_name: "Patrol example" Adding app name will unblock #157 |
Do we also want to uninstall the app if it is already present on the device? |
Reopening because |
Hi, I am looking at using your testing framework. This issue solution seems to not cover the case of flavours ? If you want to run Android flavours tests it will not be a static package name, there will be a suffix added to it. Is that scenario covered ? |
Hi @crisboarna, thanks for taking a look at us! :) If you configured your app to have patrol:
android:
package_name: com.crisboarna.calendar.staging
app_name: Awesome Calendar To run these tests (with automatic uninstall), you'll execute: patrol test --flavor staging Does it solve your use case? |
Thinking about it now, it'd also make sense to include patrol:
flavor: staging
dart-defines:
CRASHLYTICS_ENABLED: false
android:
package_name: com.crisboarna.calendar.staging
app_name: Awesome Calendar
dart-defines:
SOME_KEY: this dart-define will be only present on Android
ios:
bundle_id: com.crisboarna.Calendar.staging
app_name: Awesome Calendar
dart-defines:
SOME_KEY: this dart-define will be only present on iOS |
This issue has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar problem, please file a new issue. Make sure to follow the template and provide all the information necessary to reproduce the issue. |
To uninstall an app, we need to know its package name / bundle ID.
The easiest way to accomplish this is to ask the user to specify these values in
pubspec.yaml
:Example
or:
cc @mateuszwojtczak
The text was updated successfully, but these errors were encountered: