aurora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject git commit: Printing coverage report path on failed analysis.
Date Tue, 21 Oct 2014 21:35:39 GMT
Repository: incubator-aurora
Updated Branches:
  refs/heads/master 54dfd0924 -> 6151fe77e


Printing coverage report path on failed analysis.

Reviewed at https://reviews.apache.org/r/26985/


Project: http://git-wip-us.apache.org/repos/asf/incubator-aurora/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-aurora/commit/6151fe77
Tree: http://git-wip-us.apache.org/repos/asf/incubator-aurora/tree/6151fe77
Diff: http://git-wip-us.apache.org/repos/asf/incubator-aurora/diff/6151fe77

Branch: refs/heads/master
Commit: 6151fe77e4c3dcb0f49476cdce535835afb4149b
Parents: 54dfd09
Author: Maxim Khutornenko <maxim@apache.org>
Authored: Tue Oct 21 14:34:52 2014 -0700
Committer: Maxim Khutornenko <maxim@apache.org>
Committed: Tue Oct 21 14:34:52 2014 -0700

----------------------------------------------------------------------
 build.gradle | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/6151fe77/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index f4352d2..459c79d 100644
--- a/build.gradle
+++ b/build.gradle
@@ -490,6 +490,7 @@ license {
   ext.year = Calendar.getInstance().get(Calendar.YEAR)
 }
 
+def reportPath = "$buildDir/reports/jacoco/test"
 jacocoTestReport {
   group = "Reporting"
   description = "Generate Jacoco coverage reports after running tests."
@@ -497,18 +498,17 @@ jacocoTestReport {
   reports {
     xml.enabled true
   }
+  doLast {
+    println "Coverage report generated: file://$reportPath/html/index.html"
+  }
 }
 test.finalizedBy jacocoTestReport
 
 task analyzeReport(type: CoverageReportCheck) {
-  def reportPath = "$buildDir/reports/jacoco/test"
   coverageReportFile = "$reportPath/jacocoTestReport.xml"
   minInstructionCoverage = 0.87
   minBranchCoverage = 0.82
   legacyClassesWithoutCoverage = file('config/legacy_untested_classes.txt').readLines()
-  doLast {
-    println "Coverage report generated: file://$reportPath/html/index.html"
-  }
 }
 jacocoTestReport.finalizedBy analyzeReport
 


Mime
View raw message