This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[android_alarm_manager] Added Espresso test for background execution #2482
Merged
collinjackson
merged 45 commits into
flutter:master
from
bkonyi:alarm_manager_espresso_test
Mar 6, 2020
Merged
[android_alarm_manager] Added Espresso test for background execution #2482
collinjackson
merged 45 commits into
flutter:master
from
bkonyi:alarm_manager_espresso_test
Mar 6, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
collinjackson
approved these changes
Jan 23, 2020
packages/android_alarm_manager/example/android/app/src/main/AndroidManifest.xml
Outdated
Show resolved
Hide resolved
9 tasks
Per discussion in flutter/flutter#48439, I've split the example app into two apps until the Espresso and E2E plugins can play nicely with each other. Filed flutter/flutter#51781 for the long-term fix. |
nturgut
approved these changes
Mar 6, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
emerssso
pushed a commit
to emerssso/plugins
that referenced
this pull request
Mar 11, 2020
…lutter#2482) * Added test for android_alarm_manager background execution Co-authored-by: Collin Jackson <jackson@google.com>
EdwinRomelta
pushed a commit
to EdwinRomelta/plugins
that referenced
this pull request
Jun 11, 2020
…lutter#2482) * Added test for android_alarm_manager background execution Co-authored-by: Collin Jackson <jackson@google.com>
FlutterSu
pushed a commit
to FlutterSu/flutter-plugins
that referenced
this pull request
Nov 20, 2020
…lutter#2482) * Added test for android_alarm_manager background execution Co-authored-by: Collin Jackson <jackson@google.com>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added an Espresso test for package:android_alarm_manager which mainly tests background execution.
Basic test flow:
SharedPreferences
shows no alarms have gone off.SharedPreferences
for up to 20s to ensure a background isolate can be spawned and a Dart callback can be run.SharedPreferences
is equal to 1.To run the test without conflicting with the E2E tests, run the following command from
$PACKAGE_ROOT/example/android/
:./gradlew app:connectedAndroidTest -Ptarget=`pwd`/../test_driver/alarm_manager_test.dart -Pandroid.testInstrumentationRunnerArguments.class='io.flutter.plugins.androidalarmmanagerexample.BackgroundExecutionTest'
Fixes flutter/flutter#48439