Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A8F622009F8 for ; Fri, 3 Jun 2016 11:30:17 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A779F160A2A; Fri, 3 Jun 2016 09:30:17 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id F0D99160A25 for ; Fri, 3 Jun 2016 11:30:16 +0200 (CEST) Received: (qmail 65191 invoked by uid 500); 3 Jun 2016 09:30:16 -0000 Mailing-List: contact commits-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kafka.apache.org Delivered-To: mailing list commits@kafka.apache.org Received: (qmail 65182 invoked by uid 99); 3 Jun 2016 09:30:16 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jun 2016 09:30:16 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 16E7BDFC61; Fri, 3 Jun 2016 09:30:16 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ijuma@apache.org To: commits@kafka.apache.org Message-Id: <8058e6b253644bc99b1c0e87ad03d6ea@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: kafka git commit: MINOR: Add user overridden test logging events Date: Fri, 3 Jun 2016 09:30:16 +0000 (UTC) archived-at: Fri, 03 Jun 2016 09:30:17 -0000 Repository: kafka Updated Branches: refs/heads/0.10.0 c91f742de -> 419e6517c MINOR: Add user overridden test logging events Author: Guozhang Wang Reviewers: Ismael Juma Closes #1456 from guozhangwang/Kminor-test-logging (cherry picked from commit 76ca6f8cc1a6533866a2bd7ca6a7d32314d21dba) Signed-off-by: Ismael Juma Project: http://git-wip-us.apache.org/repos/asf/kafka/repo Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/419e6517 Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/419e6517 Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/419e6517 Branch: refs/heads/0.10.0 Commit: 419e6517c75822d94974628151d399ae93e4a9f0 Parents: c91f742 Author: Guozhang Wang Authored: Fri Jun 3 10:30:01 2016 +0100 Committer: Ismael Juma Committed: Fri Jun 3 10:30:12 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/419e6517/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/419e6517/build.gradle ---------------------------------------------------------------------- diff --git a/build.gradle b/build.gradle index 4864d5a..d076c29 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' }