Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A97A8D843 for ; Thu, 23 May 2013 07:03:09 +0000 (UTC) Received: (qmail 73327 invoked by uid 500); 23 May 2013 07:03:08 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 72810 invoked by uid 500); 23 May 2013 07:03:06 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 72654 invoked by uid 99); 23 May 2013 07:03:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 May 2013 07:03:05 +0000 X-ASF-Spam-Status: No, hits=0.3 required=5.0 tests=FREEMAIL_REPLY,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sebbaz@gmail.com designates 209.85.215.175 as permitted sender) Received: from [209.85.215.175] (HELO mail-ea0-f175.google.com) (209.85.215.175) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 May 2013 07:02:59 +0000 Received: by mail-ea0-f175.google.com with SMTP id h10so1565648eaj.34 for ; Thu, 23 May 2013 00:02:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=wFKgFPjbIM13dNeJ5Q3lSX/43AZEXXcnQP3b7kJKNpY=; b=U1QVZcRWDhU84+g978QHQKupi++8egst3xrOnTwAJeIR+zGQ/by2c8C2GA5emTvmKb rGztlEGXjWHDa6GKFBg1XyBppbUf2TBcbvpgDfwpMvhCrXTAyzFNuXYWezyAUEc518cZ jDd0530FuWYi5yGv+5uHJBC0w2WuWTLkpPp334KuLL7LhFNbCd53b0qTzbgk3jqr+KwU l4OtGWpzzn4158GcuY1rsIr89slVmT8hr8LDrai9LhenPfamQkLy+6pQeS3pnx2fEZkX wxG3ec0nhHCGm6njyt9n765v7WFHaxnX/+n2z9fCRaSan+pCdWZlJAPXkLCj3h/hZJbK P9iA== MIME-Version: 1.0 X-Received: by 10.15.111.75 with SMTP id ci51mr28222733eeb.7.1369292559253; Thu, 23 May 2013 00:02:39 -0700 (PDT) Received: by 10.223.1.133 with HTTP; Thu, 23 May 2013 00:02:39 -0700 (PDT) In-Reply-To: <519DA0B7.7090304@gmail.com> References: <519DA0B7.7090304@gmail.com> Date: Thu, 23 May 2013 08:02:39 +0100 Message-ID: Subject: Re: [parent][all] JaCoCo vs. Cobertura From: sebb To: Commons Developers List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On 23 May 2013 05:53, Phil Steitz wrote: > On 5/22/13 5:45 PM, sebb wrote: >> On 23 May 2013 01:15, Gary Gregory wrote: >>> On Wed, May 22, 2013 at 7:43 PM, sebb wrote: >>> >>>> On 22 May 2013 17:52, Gary Gregory wrote: >>>>> Hi All: >>>>> >>>>> [parent] version 29 replaces Cobertura with Jacoco, the main reasoning >>>> from >>>>> the folks over at [math] being that Jacoco is very fast compared to >>>>> Cobertura. In the case of [math] it's hours vs. minutes. >>>>> >>>>> The problem is that Jacoco produces bogus results as I recently emailed >>>>> about the [io] component. The large portion of the code is reported with >>>> 0% >>>>> coverage which is completely wrong. This is apparently a known issue due >>>> to >>>>> the Jacoco use of 'probes' to analyze code which is not compatible with >>>> the >>>>> use of exceptions. >>>>> >>>>> If you get the latest from [io] and edit the POM to enable JaCoC, you can >>>>> compare both reports in the generated site with 'mvn clean site'. >>>>> >>>>> Fast and bogus is not better than slow and right. >>>>> >>>>> I propose we switch [parent] back to Cobertura until a better alternative >>>>> is proposed. [math] can decide if it can live with the fast and bad >>>> results >>>>> provided by Jacoco. >>>> Why not include both as options, so components can choose? >>>> >>> Sure, why not, it would be nice to be able to run both for the same report >>> set to see the differences. >> As a test I created profiles for JaCoCo and Cobertura. >> These work fine when activated via the command-line. >> >> I had hoped to use a property defined in the component POM to enable >> the default coverage provider, unfortunately the profiles are resolved >> before the properties are defined. >> >> However file-based activation does work OK - this would require >> projects to define a dummy file somewhere, for example: >> >> src/site/resources/coverage.jacoco >> or >> src/site/resources/coverage.cobertura >> >> A component can thereby define the appropriate default coverage tool. >> >> This can be overridden on the command line, for example: >> >> -P!jacoco -Pcobertura > > Why not just let projects add a coverage reporting plugin if they > want it? I think that is how maven is designed to work :) That's equivalent to what I was proposing. The profiles would be optional. The idea of having it in the parent pom is to reduce the work in maintaining child poms, and make it simpler to switch between plugins (or indeed run both or neither). Common code and all that. > Phil >> >>> Gary >>> >>>> I'm currently experimenting with profiles to see if this can be done >>>> easily. >>>> >>>>> Gary >>>>> >>>>> -- >>>>> E-Mail: garydgregory@gmail.com | ggregory@apache.org >>>>> Java Persistence with Hibernate, Second Edition< >>>> http://www.manning.com/bauer3/> >>>>> JUnit in Action, Second Edition >>>>> Spring Batch in Action >>>>> Blog: http://garygregory.wordpress.com >>>>> Home: http://garygregory.com/ >>>>> Tweet! http://twitter.com/GaryGregory >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org >>>> For additional commands, e-mail: dev-help@commons.apache.org >>>> >>>> >>> >>> -- >>> E-Mail: garydgregory@gmail.com | ggregory@apache.org >>> Java Persistence with Hibernate, Second Edition >>> JUnit in Action, Second Edition >>> Spring Batch in Action >>> Blog: http://garygregory.wordpress.com >>> Home: http://garygregory.com/ >>> Tweet! http://twitter.com/GaryGregory >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org >> For additional commands, e-mail: dev-help@commons.apache.org >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org