Skip to content

Commit 127b24b

Browse files
committed
Espresso 2.2.1 Runner/Rules 0.4 release
Change-Id: I0016b571ebf99fb86508f9a3530eff2497248fb3
1 parent 44111bd commit 127b24b

File tree

5 files changed

+26
-26
lines changed

5 files changed

+26
-26
lines changed

AndroidTestingBlueprint/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Run normally (see above).
114114
Execute:
115115

116116
```
117-
./gradlew module-flavor1-androidTest-only:connectedCheck
117+
./gradlew module-flavor1-androidTest-only:connectedAndroidTest
118118
```
119119

120120
##### From command-line via adb
@@ -188,19 +188,19 @@ property needs to be used, in conjunction with `argName` and `argValue`. Multipl
188188
For instance, to run all tests annotated with the `@Large` test size qualifier in the app module, execute:
189189

190190
``` sh
191-
./gradlew app:connectedCheck -Pandroid.testInstrumentationRunnerArguments.size=large
191+
./gradlew app:connectedAndroidTest -Pandroid.testInstrumentationRunnerArguments.size=large
192192
```
193193

194194
To only run tests for a specific test class, i.e. EspressoTest, execute:
195195

196196
``` sh
197-
./gradlew app:connectedCheck -Pandroid.testInstrumentationRunnerArguments.class=com.example.android.testing.blueprint.ui.espresso.EspressoTest
197+
./gradlew app:connectedAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=com.example.android.testing.blueprint.ui.espresso.EspressoTest
198198
```
199199

200200
To pass in an arbitrary argument which can be accessed in a test at runtime, execute:
201201

202202
``` sh
203-
./gradlew module-flavor1-androidTest-only:connectedCheck -Pandroid.testInstrumentationRunnerArguments.argument1=make_test_fail
203+
./gradlew module-flavor1-androidTest-only:connectedAndroidTest -Pandroid.testInstrumentationRunnerArguments.argument1=make_test_fail
204204
```
205205
All arguments passed through command line can also be specified in the project's build.gradle file, which is
206206
great for specifying values which are required by the test harness itself. The `argument1` from the previous

AndroidTestingBlueprint/app/build.gradle

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 22
5-
buildToolsVersion '23.0.0rc3'
4+
compileSdkVersion 23
5+
buildToolsVersion '23.0.1'
66

77
/*
88
Test only modules require other artifacts like the classes.jar to be published, so the test can
@@ -14,7 +14,7 @@ android {
1414
defaultConfig {
1515
applicationId 'com.example.android.testing.blueprint'
1616
minSdkVersion 10
17-
targetSdkVersion 22
17+
targetSdkVersion 23
1818
versionCode 1
1919
versionName '1.0'
2020

@@ -67,7 +67,7 @@ android {
6767

6868
dependencies {
6969
// App's dependencies, including test
70-
compile 'com.android.support:appcompat-v7:22.2.0'
70+
compile 'com.android.support:appcompat-v7:23.0.1'
7171

7272
compile project(':module-plain-java') // Optional module for non-Android code
7373
compile project(':module-android-library') // Optional module for additional Android code
@@ -78,19 +78,19 @@ dependencies {
7878
testCompile 'org.hamcrest:hamcrest-all:1.3'
7979

8080
// Android Testing Support Library's runner and rules
81-
androidTestCompile 'com.android.support.test:runner:0.3'
82-
androidTestCompile 'com.android.support.test:rules:0.3'
81+
androidTestCompile 'com.android.support.test:runner:0.4'
82+
androidTestCompile 'com.android.support.test:rules:0.4'
8383

8484
// Espresso UI Testing
85-
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2'
85+
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.1'
8686

8787
// Espresso-Contrib, Intents and Web dependencies are not used in this project.
8888
/*
89-
androidTestCompile 'com.android.support.test.espresso:espresso-contrib:2.2'
90-
androidTestCompile 'com.android.support.test.espresso:espresso-intents:2.2'
91-
androidTestCompile 'com.android.support.test.espresso:espresso-web:2.2'
89+
androidTestCompile 'com.android.support.test.espresso:espresso-contrib:2.2.1'
90+
androidTestCompile 'com.android.support.test.espresso:espresso-intents:2.2.1'
91+
androidTestCompile 'com.android.support.test.espresso:espresso-web:2.2.1'
9292
*/
9393

9494
// UIAutomator Testing. Learn about this dependency in this projects README file.
95-
androidTestCompile 'com.android.support.test.uiautomator:uiautomator-v18:2.1.1'
95+
androidTestCompile 'com.android.support.test.uiautomator:uiautomator-v18:2.1.2'
9696
}

AndroidTestingBlueprint/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
jcenter()
66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:1.3.0'
8+
classpath 'com.android.tools.build:gradle:1.3.1'
99

1010
// NOTE: Do not place your application dependencies here; they belong
1111
// in the individual module build.gradle files

AndroidTestingBlueprint/module-android-library/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
apply plugin: 'com.android.library'
22

33
android {
4-
compileSdkVersion 22
5-
buildToolsVersion "23.0.0rc3"
4+
compileSdkVersion 23
5+
buildToolsVersion "23.0.1"
66

77
defaultConfig {
88
minSdkVersion 10
9-
targetSdkVersion 22
9+
targetSdkVersion 23
1010
versionCode 1
1111
versionName "1.0"
1212

@@ -20,6 +20,6 @@ android {
2020

2121
dependencies {
2222
// Android Testing Support Library's runner and rules
23-
androidTestCompile 'com.android.support.test:runner:0.3'
24-
androidTestCompile 'com.android.support.test:rules:0.3'
23+
androidTestCompile 'com.android.support.test:runner:0.4'
24+
androidTestCompile 'com.android.support.test:rules:0.4'
2525
}

AndroidTestingBlueprint/module-flavor1-androidTest-only/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
apply plugin: 'com.android.test' // A plugin used for test-only-modules
22

33
android {
4-
compileSdkVersion 22
5-
buildToolsVersion = '23.0.0rc3'
4+
compileSdkVersion 23
5+
buildToolsVersion = '23.0.1'
66

77
defaultConfig {
88
minSdkVersion 10
9-
targetSdkVersion 22
9+
targetSdkVersion 23
1010
// The package name of the test app
1111
testApplicationId 'com.example.android.testing.blueprint.test'
1212
// The Instrumentation test runner used to run tests.
@@ -21,7 +21,7 @@ android {
2121

2222
dependencies {
2323
// Android Testing Support Library's runner and rules and hamcrest matchers
24-
compile 'com.android.support.test:runner:0.3'
25-
compile 'com.android.support.test:rules:0.3'
24+
compile 'com.android.support.test:runner:0.4'
25+
compile 'com.android.support.test:rules:0.4'
2626
compile 'org.hamcrest:hamcrest-core:1.3'
2727
}

0 commit comments

Comments
 (0)