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
Copy file name to clipboardExpand all lines: README.md
+98-33
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@
8
8
Firebase is actually the most popular developer tool platform, wchich handles almost every aspect of the app. It also gives possibility to run Android Tests on physical or virtual devices hosted in a Google data center through [Firebase Test Lab](https://firebase.google.com/docs/test-lab/). In order to fully exploit the potential of this tool I've created plugin to simplify process of creating tests configurations. It allows to run tests locally as well as on you CI server.
9
9
10
10
#### Available features
11
+
- Automatic installation of `gcloud` command line tool
11
12
- Creating tasks for testable `buildType`[By default it is `debug`. If you want to change it use `testBuildType "buildTypeName"`]
12
13
- Creating tasks for every defined device and configuration separetly [ including Instrumented / Robo tests ]
13
14
- Creating tasks which runs all configurations at once
@@ -22,52 +23,116 @@ Firebase is actually the most popular developer tool platform, wchich handles al
22
23
23
24
#### Setup
24
25
25
-
```Groovy
26
-
buildscript {
27
-
repositories {
28
-
maven {
29
-
url "https://plugins.gradle.org/m2/"
26
+
1. If you don't have a Firebase project for your app, go to the []Firebase console](https://console.firebase.google.com/) and click Create New Project to create one now. You will need ownership or edit permissions in your project.
27
+
2. Create a service account related with your firebase project with an Editor role in the [Google Cloud Platform console - IAM/Service Accounts](https://console.cloud.google.com/iam-admin/serviceaccounts/)
List of available [devices](https://firebase.google.com/docs/test-lab/images/gcloud-device-list.png)
86
+
// If you prefer to install gcloud tool manually you can set path by
87
+
// cloudSdkPath = "/user/cloud-sdk/bin"
50
88
51
-
```Goovy
52
-
firebaseTestLab {
53
-
keyFile = file("keys.json")
54
-
googleProjectId = "your-project-id"
55
-
cloudSdkPath = "/user/cloud-sdk/bin"
56
-
cloudBucketName = "bucket-test"
57
-
cloudDirectoryName = "androidTests"
58
-
clearDirectoryBeforeRun = true
89
+
// If you want to change default gcloud installation path (default is in build/gcloud directory)
90
+
// you can set environment variable `export CLOUDSDK_INSTALL_DIR=`/cache/your_directory/`
59
91
92
+
// REQUIRED
60
93
devices {
61
-
galaxyS7 {
62
-
androidApiLevels = [23]
63
-
deviceIds = ["herolte"]
94
+
// REQUIRED add at least one device
95
+
nexusEmulator {
96
+
// REQUIRED Choose at least one device id
97
+
// you can list all available via `gcloud firebase test android models list` or look on https://firebase.google.com/docs/test-lab/images/gcloud-device-list.png
98
+
deviceIds = ["Nexus6"]
99
+
100
+
// REQUIRED Choose at least one API level
101
+
// you can list all available via `gcloud firebase test android models list` for your device model
0 commit comments