Skip to content

Commit d91e52a

Browse files
bparrishMinesamantoux
authored andcommitted
Make java-test output more useful (flutter#4184)
1 parent 8a53bfc commit d91e52a

File tree

25 files changed

+293
-4
lines changed

25 files changed

+293
-4
lines changed

packages/android_alarm_manager/android/build.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,19 @@ android {
3939
lintOptions {
4040
disable 'InvalidPackage'
4141
}
42+
43+
44+
testOptions {
45+
unitTests.includeAndroidResources = true
46+
unitTests.returnDefaultValues = true
47+
unitTests.all {
48+
testLogging {
49+
events "passed", "skipped", "failed", "standardOut", "standardError"
50+
outputs.upToDateWhen {false}
51+
showStandardStreams = true
52+
}
53+
}
54+
}
4255
}
4356

4457
dependencies {

packages/android_intent/android/build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,18 @@ android {
3636
lintOptions {
3737
disable 'InvalidPackage'
3838
}
39+
40+
3941
testOptions {
4042
unitTests.includeAndroidResources = true
43+
unitTests.returnDefaultValues = true
44+
unitTests.all {
45+
testLogging {
46+
events "passed", "skipped", "failed", "standardOut", "standardError"
47+
outputs.upToDateWhen {false}
48+
showStandardStreams = true
49+
}
50+
}
4151
}
4252
}
4353

packages/battery/battery/android/build.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,17 @@ android {
3131
lintOptions {
3232
disable 'InvalidPackage'
3333
}
34+
35+
36+
testOptions {
37+
unitTests.includeAndroidResources = true
38+
unitTests.returnDefaultValues = true
39+
unitTests.all {
40+
testLogging {
41+
events "passed", "skipped", "failed", "standardOut", "standardError"
42+
outputs.upToDateWhen {false}
43+
showStandardStreams = true
44+
}
45+
}
46+
}
3447
}

packages/camera/camera/android/build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,18 @@ android {
4040
sourceCompatibility = '1.8'
4141
targetCompatibility = '1.8'
4242
}
43+
44+
4345
testOptions {
4446
unitTests.includeAndroidResources = true
4547
unitTests.returnDefaultValues = true
48+
unitTests.all {
49+
testLogging {
50+
events "passed", "skipped", "failed", "standardOut", "standardError"
51+
outputs.upToDateWhen {false}
52+
showStandardStreams = true
53+
}
54+
}
4655
}
4756
}
4857

packages/connectivity/connectivity/android/build.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,17 @@ android {
3636
lintOptions {
3737
disable 'InvalidPackage'
3838
}
39+
40+
41+
testOptions {
42+
unitTests.includeAndroidResources = true
43+
unitTests.returnDefaultValues = true
44+
unitTests.all {
45+
testLogging {
46+
events "passed", "skipped", "failed", "standardOut", "standardError"
47+
outputs.upToDateWhen {false}
48+
showStandardStreams = true
49+
}
50+
}
51+
}
3952
}

packages/device_info/device_info/android/build.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,17 @@ android {
3131
lintOptions {
3232
disable 'InvalidPackage'
3333
}
34+
35+
36+
testOptions {
37+
unitTests.includeAndroidResources = true
38+
unitTests.returnDefaultValues = true
39+
unitTests.all {
40+
testLogging {
41+
events "passed", "skipped", "failed", "standardOut", "standardError"
42+
outputs.upToDateWhen {false}
43+
showStandardStreams = true
44+
}
45+
}
46+
}
3447
}

packages/espresso/android/build.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,19 @@ android {
3131
lintOptions {
3232
disable 'InvalidPackage'
3333
}
34+
35+
36+
testOptions {
37+
unitTests.includeAndroidResources = true
38+
unitTests.returnDefaultValues = true
39+
unitTests.all {
40+
testLogging {
41+
events "passed", "skipped", "failed", "standardOut", "standardError"
42+
outputs.upToDateWhen {false}
43+
showStandardStreams = true
44+
}
45+
}
46+
}
3447
}
3548

3649
dependencies {

packages/flutter_plugin_android_lifecycle/android/build.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,19 @@ android {
3636
dependencies {
3737
implementation "androidx.annotation:annotation:1.1.0"
3838
}
39+
40+
41+
testOptions {
42+
unitTests.includeAndroidResources = true
43+
unitTests.returnDefaultValues = true
44+
unitTests.all {
45+
testLogging {
46+
events "passed", "skipped", "failed", "standardOut", "standardError"
47+
outputs.upToDateWhen {false}
48+
showStandardStreams = true
49+
}
50+
}
51+
}
3952
}
4053

4154
dependencies {

packages/google_maps_flutter/google_maps_flutter/android/build.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,19 @@ android {
4444
sourceCompatibility JavaVersion.VERSION_1_8
4545
targetCompatibility JavaVersion.VERSION_1_8
4646
}
47+
48+
49+
testOptions {
50+
unitTests.includeAndroidResources = true
51+
unitTests.returnDefaultValues = true
52+
unitTests.all {
53+
testLogging {
54+
events "passed", "skipped", "failed", "standardOut", "standardError"
55+
outputs.upToDateWhen {false}
56+
showStandardStreams = true
57+
}
58+
}
59+
}
4760
}
4861

4962
dependencies {

packages/google_sign_in/google_sign_in/android/build.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,19 @@ android {
3131
lintOptions {
3232
disable 'InvalidPackage'
3333
}
34+
35+
36+
testOptions {
37+
unitTests.includeAndroidResources = true
38+
unitTests.returnDefaultValues = true
39+
unitTests.all {
40+
testLogging {
41+
events "passed", "skipped", "failed", "standardOut", "standardError"
42+
outputs.upToDateWhen {false}
43+
showStandardStreams = true
44+
}
45+
}
46+
}
3447
}
3548

3649
dependencies {

packages/image_picker/image_picker/android/build.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,17 @@ android {
3636
implementation 'androidx.annotation:annotation:1.0.0'
3737
implementation 'androidx.exifinterface:exifinterface:1.3.0'
3838
}
39+
40+
41+
testOptions {
42+
unitTests.includeAndroidResources = true
43+
unitTests.returnDefaultValues = true
44+
unitTests.all {
45+
testLogging {
46+
events "passed", "skipped", "failed", "standardOut", "standardError"
47+
outputs.upToDateWhen {false}
48+
showStandardStreams = true
49+
}
50+
}
51+
}
3952
}

packages/in_app_purchase/in_app_purchase_android/android/build.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,19 @@ android {
3535
sourceCompatibility JavaVersion.VERSION_1_8
3636
targetCompatibility JavaVersion.VERSION_1_8
3737
}
38+
39+
40+
testOptions {
41+
unitTests.includeAndroidResources = true
42+
unitTests.returnDefaultValues = true
43+
unitTests.all {
44+
testLogging {
45+
events "passed", "skipped", "failed", "standardOut", "standardError"
46+
outputs.upToDateWhen {false}
47+
showStandardStreams = true
48+
}
49+
}
50+
}
3851
}
3952

4053
dependencies {

packages/local_auth/android/build.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,19 @@ android {
3131
lintOptions {
3232
disable 'InvalidPackage'
3333
}
34+
35+
36+
testOptions {
37+
unitTests.includeAndroidResources = true
38+
unitTests.returnDefaultValues = true
39+
unitTests.all {
40+
testLogging {
41+
events "passed", "skipped", "failed", "standardOut", "standardError"
42+
outputs.upToDateWhen {false}
43+
showStandardStreams = true
44+
}
45+
}
46+
}
3447
}
3548

3649
dependencies {

packages/package_info/android/build.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,17 @@ android {
3131
lintOptions {
3232
disable 'InvalidPackage'
3333
}
34+
35+
36+
testOptions {
37+
unitTests.includeAndroidResources = true
38+
unitTests.returnDefaultValues = true
39+
unitTests.all {
40+
testLogging {
41+
events "passed", "skipped", "failed", "standardOut", "standardError"
42+
outputs.upToDateWhen {false}
43+
showStandardStreams = true
44+
}
45+
}
46+
}
3447
}

packages/path_provider/path_provider/android/build.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,19 @@ android {
3737
targetCompatibility 1.8
3838
}
3939
}
40+
41+
42+
testOptions {
43+
unitTests.includeAndroidResources = true
44+
unitTests.returnDefaultValues = true
45+
unitTests.all {
46+
testLogging {
47+
events "passed", "skipped", "failed", "standardOut", "standardError"
48+
outputs.upToDateWhen {false}
49+
showStandardStreams = true
50+
}
51+
}
52+
}
4053
}
4154

4255
dependencies {

packages/quick_actions/quick_actions/android/build.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,17 @@ android {
3131
lintOptions {
3232
disable 'InvalidPackage'
3333
}
34+
35+
36+
testOptions {
37+
unitTests.includeAndroidResources = true
38+
unitTests.returnDefaultValues = true
39+
unitTests.all {
40+
testLogging {
41+
events "passed", "skipped", "failed", "standardOut", "standardError"
42+
outputs.upToDateWhen {false}
43+
showStandardStreams = true
44+
}
45+
}
46+
}
3447
}

packages/sensors/android/build.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,17 @@ android {
3131
lintOptions {
3232
disable 'InvalidPackage'
3333
}
34+
35+
36+
testOptions {
37+
unitTests.includeAndroidResources = true
38+
unitTests.returnDefaultValues = true
39+
unitTests.all {
40+
testLogging {
41+
events "passed", "skipped", "failed", "standardOut", "standardError"
42+
outputs.upToDateWhen {false}
43+
showStandardStreams = true
44+
}
45+
}
46+
}
3447
}

packages/share/android/build.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,17 @@ android {
3636
implementation 'androidx.core:core:1.3.1'
3737
implementation 'androidx.annotation:annotation:1.1.0'
3838
}
39+
40+
41+
testOptions {
42+
unitTests.includeAndroidResources = true
43+
unitTests.returnDefaultValues = true
44+
unitTests.all {
45+
testLogging {
46+
events "passed", "skipped", "failed", "standardOut", "standardError"
47+
outputs.upToDateWhen {false}
48+
showStandardStreams = true
49+
}
50+
}
51+
}
3952
}

packages/shared_preferences/shared_preferences/android/build.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,17 @@ android {
4343
testImplementation 'junit:junit:4.12'
4444
testImplementation 'org.mockito:mockito-inline:3.9.0'
4545
}
46+
47+
48+
testOptions {
49+
unitTests.includeAndroidResources = true
50+
unitTests.returnDefaultValues = true
51+
unitTests.all {
52+
testLogging {
53+
events "passed", "skipped", "failed", "standardOut", "standardError"
54+
outputs.upToDateWhen {false}
55+
showStandardStreams = true
56+
}
57+
}
58+
}
4659
}

packages/url_launcher/url_launcher/android/build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,18 @@ android {
3131
lintOptions {
3232
disable 'InvalidPackage'
3333
}
34+
35+
3436
testOptions {
3537
unitTests.includeAndroidResources = true
38+
unitTests.returnDefaultValues = true
39+
unitTests.all {
40+
testLogging {
41+
events "passed", "skipped", "failed", "standardOut", "standardError"
42+
outputs.upToDateWhen {false}
43+
showStandardStreams = true
44+
}
45+
}
3646
}
3747
}
3848

packages/video_player/video_player/android/build.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,17 @@ android {
5151
testImplementation 'junit:junit:4.12'
5252
testImplementation 'org.mockito:mockito-inline:3.9.0'
5353
}
54+
55+
56+
testOptions {
57+
unitTests.includeAndroidResources = true
58+
unitTests.returnDefaultValues = true
59+
unitTests.all {
60+
testLogging {
61+
events "passed", "skipped", "failed", "standardOut", "standardError"
62+
outputs.upToDateWhen {false}
63+
showStandardStreams = true
64+
}
65+
}
66+
}
5467
}

0 commit comments

Comments
 (0)