kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ij...@apache.org
Subject kafka git commit: MINOR: Add user overridden test logging events
Date Fri, 03 Jun 2016 09:30:05 GMT
Repository: kafka
Updated Branches:
  refs/heads/trunk 7699b91f8 -> 76ca6f8cc


MINOR: Add user overridden test logging events

Author: Guozhang Wang <wangguoz@gmail.com>

Reviewers: Ismael Juma <ismael@juma.me.uk>

Closes #1456 from guozhangwang/Kminor-test-logging


Project: http://git-wip-us.apache.org/repos/asf/kafka/repo
Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/76ca6f8c
Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/76ca6f8c
Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/76ca6f8c

Branch: refs/heads/trunk
Commit: 76ca6f8cc1a6533866a2bd7ca6a7d32314d21dba
Parents: 7699b91
Author: Guozhang Wang <wangguoz@gmail.com>
Authored: Fri Jun 3 10:30:01 2016 +0100
Committer: Ismael Juma <ismael@juma.me.uk>
Committed: Fri Jun 3 10:30:01 2016 +0100

----------------------------------------------------------------------
 README.md    | 1 +
 build.gradle | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kafka/blob/76ca6f8c/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index e9322b4..91c0980 100644
--- a/README.md
+++ b/README.md
@@ -137,6 +137,7 @@ The following options should be set with a `-D` switch, for example `./gradlew
-
 * `org.gradle.project.maxParallelForks`: limits the maximum number of processes for each
task.
 * `org.gradle.project.showStandardStreams`: shows standard out and standard error of the
test JVM(s) on the console.
 * `org.gradle.project.skipSigning`: skips signing of artifacts.
+* `org.gradle.project.testLoggingEvents`: unit test events to be logged, separated by comma.
For example `./gradlew -Dorg.gradle.project.testLoggingEvents=started,passed,skipped,failed
test`
 
 ### Running in Vagrant ###
 

http://git-wip-us.apache.org/repos/asf/kafka/blob/76ca6f8c/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index 0f39232..59280a4 100644
--- a/build.gradle
+++ b/build.gradle
@@ -82,6 +82,8 @@ ext {
 
   userShowStandardStreams = project.hasProperty("showStandardStreams") ? showStandardStreams
: null
 
+  userTestLoggingEvents = project.hasProperty("testLoggingEvents") ? Arrays.asList(testLoggingEvents.split(","))
: null
+
   generatedDocsDir = new File("${project.rootDir}/docs/generated")
 }
 
@@ -156,7 +158,7 @@ subprojects {
   test {
     maxParallelForks = userMaxForks ?: Runtime.runtime.availableProcessors()
     testLogging {
-      events "passed", "skipped", "failed"
+      events = userTestLoggingEvents ?: ["passed", "skipped", "failed"]
       showStandardStreams = userShowStandardStreams ?: false
       exceptionFormat = 'full'
     }


Mime
View raw message