Ensure check dependsOn on 'test' for flavored builds.
Xavier Ducrohet [Thu, 7 Feb 2013 19:53:07 +0000 (11:53 -0800)]
Change-Id: If7206fd74b3f8425c22d2e23d8f14299a2efe63d

gradle/src/main/groovy/com/android/build/gradle/AppPlugin.groovy

index 2bfb775..a89c8de 100644 (file)
@@ -178,6 +178,7 @@ class AppPlugin extends com.android.build.gradle.BasePlugin implements org.gradl
             testTask.group = JavaBasePlugin.VERIFICATION_GROUP
             testTask.description = "Installs and runs tests for all flavors"
             testTask.reportType = ReportType.MULTI_FLAVOR
+            project.tasks.check.dependsOn testTask
 
             testTask.conventionMapping.resultsDir = {
                 String rootLocation = extension.testOptions.resultsDir != null ?