aboutsummaryrefslogtreecommitdiff
path: root/gradle/build.gradle
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2013-01-04 14:58:14 -0800
committerXavier Ducrohet <xav@android.com>2013-01-10 18:16:40 -0800
commit06dc485552957e6b0492e269e2fa0347790498e9 (patch)
tree990d72fbe227d42a425c1913fd93fdc1ab90d467 /gradle/build.gradle
parent1ac02d56be392643eb31a855fb418cfa926b63f8 (diff)
downloadbuild-06dc485552957e6b0492e269e2fa0347790498e9.tar.gz
Custom Junit test report.
Duplicated the report classes from Gradle to customize them in order to show the device the test run on, or which flavor and project the test is coming from. This duplicated code is in its own source folder to separate this from AOSP code and retains the original copyright. The "test" tasks which runs all test<Flavor> tasks now also aggregate the results of the test<Flavor> tasks and is designed to run even when those fails by telling them to ignore errors if the "test" task is set to run. Added a new plugin strictly to do aggregate for the subprojects. Plugin is called 'android-reporting' It's meant to be used by the root project. It behaves similarly as the "test" class in the android project, by telling sub tasks to ignore errors. The aggregate tasks will throw an exception if the sub test tasks saw errors in order to ensure that the caller to gradle can manage errors still. Change-Id: I2c1df77cf8073fb74b4145b09aa7609d7999ef6c
Diffstat (limited to 'gradle/build.gradle')
-rw-r--r--gradle/build.gradle4
1 files changed, 4 insertions, 0 deletions
diff --git a/gradle/build.gradle b/gradle/build.gradle
index f627d3a..9a47299 100644
--- a/gradle/build.gradle
+++ b/gradle/build.gradle
@@ -9,6 +9,10 @@ configurations {
}
sourceSets {
+ main {
+ groovy.srcDirs 'src/main/groovy', 'src/fromGradle/groovy'
+ resources.srcDirs 'src/main/resources', 'src/fromGradle/resources'
+ }
buildTest {
groovy.srcDir file('src/build-test/groovy')
resources.srcDir file('src/build-test/resources')