You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aurora.apache.org by ma...@apache.org on 2014/01/06 21:58:57 UTC

git commit: Adding java code coverage reporting into Aurora build.

Updated Branches:
  refs/heads/master 080124ffd -> 8f9cfa218


Adding java code coverage reporting into Aurora build.

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


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

Branch: refs/heads/master
Commit: 8f9cfa21894d854ab2bc476c50ca8fb25c76c129
Parents: 080124f
Author: Maxim Khutornenko <ma...@apache.org>
Authored: Mon Jan 6 12:58:32 2014 -0800
Committer: Maxim Khutornenko <mk...@twitter.com>
Committed: Mon Jan 6 12:58:32 2014 -0800

----------------------------------------------------------------------
 build.gradle | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/8f9cfa21/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index 7cc1161..b4b055c 100644
--- a/build.gradle
+++ b/build.gradle
@@ -5,6 +5,7 @@ apply plugin: 'idea'
 apply plugin: 'java'
 apply plugin: 'maven-publish'
 apply plugin: 'versions'
+apply plugin: 'jacoco'
 
 buildscript {
   repositories {
@@ -275,3 +276,14 @@ run {
     '-testing_log_file_path=/tmp/testing_log_file',
   ]
 }
+
+jacocoTestReport {
+  group = "Reporting"
+  description = "Generate Jacoco coverage reports after running tests."
+  additionalSourceDirs = files(sourceSets.main.allJava.srcDirs)
+  doLast {
+    println "Coverage report generated: file:///$buildDir/reports/jacoco/test/html/index.html"
+  }
+}
+
+test.finalizedBy jacocoTestReport
\ No newline at end of file