Skip to content
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

test: Patrol tests for auth and messaging example apps #11378

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,8 @@ firebase-debug.log
firestore-debug.log
database-debug.log
ui-debug.log

packages/firebase_messaging/firebase_messaging/example/service-account.json
packages/firebase_auth/firebase_auth/example/.patrol.env
packages/firebase_auth/firebase_auth/example/integration_test/test_bundle.dart
packages/firebase_messaging/firebase_messaging/example/integration_test/test_bundle.dart
11 changes: 11 additions & 0 deletions packages/firebase_auth/firebase_auth/example/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"configurations": [
{
"name": "attach debugger",
"request": "attach",
"type": "dart",
"cwd": "integration_test",
"vmServiceUri": "${command:dart.promptForVmService}",
},
]
}
6 changes: 6 additions & 0 deletions packages/firebase_auth/firebase_auth/example/PATROL_README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Patrol UI tests

Before trying to run the tests, make sure the app itself works and you set it up according to instructions in README.md file.
To run the UI tests, you need to install [patrol_cli][cli_pub] and use `patrol test` command.

[cli_pub]: https://pub.dev/packages/patrol_cli
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,13 @@ android {
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "io.flutter.plugins.firebase.auth.example"
minSdkVersion 19
minSdkVersion 21
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
multiDexEnabled true
testInstrumentationRunner "pl.leancode.patrol.PatrolJUnitRunner"
testInstrumentationRunnerArguments clearPackageData: "true"
}

buildTypes {
Expand All @@ -63,6 +65,10 @@ android {
signingConfig signingConfigs.debug
}
}

testOptions {
execution "ANDROIDX_TEST_ORCHESTRATOR"
}
}

flutter {
Expand All @@ -72,6 +78,7 @@ flutter {
dependencies {
implementation 'com.android.support:multidex:1.0.3'
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
androidTestUtil "androidx.test:orchestrator:1.4.2"
}

apply plugin: 'com.google.gms.google-services'
Loading