You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 04db01f
Browse filesBrowse the repository at this point in the historyBrowse files
feat: Add --no-uninstall flag to flutter test for integration tests (#182714)
## Description
Add `--no-uninstall` flag to `flutter test` to skip app uninstallation
after integration tests complete.
When running integration tests on Android (`flutter test
integration_test/`), the `IntegrationTestTestDevice.kill()` method
always calls `device.uninstallApp()` after tests finish. For Device
Policy Manager (DPM) apps, Android prevents uninstallation, causing the
error:
```bash
adb uninstall failed: Failure [DELETE_FAILED_DEVICE_POLICY_MANAGER]
```
This PR adds a `--uninstall` flag (defaulting to true) to `flutter
test`, so users can pass `--no-uninstall` to skip the post-test
uninstallation step:
```bash
flutter test integration_test/ --no-uninstall
```
Fixes#166709
## Pre-launch Checklist
- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [x] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [x] I read and followed the [Flutter Style Guide], including [Features
we expect every widget to implement].
- [x] I signed the [CLA].
- [x] I listed at least one issue that this PR fixes in the description
above.
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] I added new tests to check the change I am making, or this PR is
[test-exempt].
- [x] I followed the [breaking change policy] and added [Data Driven
Fixes] where supported.
- [x] All existing and new tests are passing.
0 commit comments