commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luc Maisonobe <Luc.Maison...@free.fr>
Subject Re: [ALL] Cobertura and Parent POM
Date Wed, 08 May 2013 20:03:18 GMT
Le 08/05/2013 21:58, Luc Maisonobe a écrit :
> Le 08/05/2013 21:11, Gary Gregory a écrit :
>> I updated my local commons-io to 29-SNAPSHOT and I do not see a coverage
>> report.
>>
>> How is that fixed?
> 
> Well, I did not have to do anything for [math]. Did you install the
> snapshot locally with "mvn install"? Don't you have the skipReports
> property set to true?

Another point: did you try a complete "mvn site"? I don't understand
much in maven internals, but it seems to not generate reports the same
way when you pinpoint a plugin goal and when you generate everything.

For the record, the maven version I use is:

(lehrin) luc% mvn --version
Apache Maven 3.0.4
Maven home: /usr/share/maven
Java version: 1.6.0_27, vendor: Sun Microsystems Inc.
Java home: /usr/lib/jvm/java-6-openjdk-amd64/jre
Default locale: fr_FR, platform encoding: UTF-8
OS name: "linux", version: "3.2.0-4-amd64", arch: "amd64", family: "unix"
(lehrin) luc%

Also did you see the donwloading of jacoco plugin during the maven run?

Luc

> 
> Luc
> 
>>
>> Gary
>>
>>
>> On Fri, Apr 5, 2013 at 7:44 AM, luc <luc@spaceroots.org> wrote:
>>
>>> Le 2013-04-05 00:10, Gary Gregory a écrit :
>>>
>>>> On Thu, Apr 4, 2013 at 4:03 PM, sebb <sebbaz@gmail.com> wrote:
>>>>
>>>>  CP 28 moved Cobertura to a profile called "reporting".
>>>>>
>>>>> The profile was activated by default, but could be disabled by using
>>>>>
>>>>> -DskipReports=true
>>>>> or
>>>>> -P!reporting
>>>>>
>>>>> IIRC, the idea was to move expensive (long-running) reports to a profile
>>>>> that could be disabled if necessary.
>>>>>
>>>>> However Cobertura causes problems with some projects, and the project
>>>>> seems
>>>>> to be unmaintained, so perhaps it would be sensible to disable Cobertura
>>>>> by
>>>>> default.
>>>>> In which case the profile and property should be renamed to reflect the
>>>>> fact that it only affects Cobertura.
>>>>>
>>>>> Possibly even drop Cobertura entirely from the parent POM.
>>>>>
>>>>> However, I think it is important that some code coverage tool is used.
>>>>>
>>>>>
>>>> OK, but which one? I know some projects use Clover but I'd rather we use
>>>> another FOSS tool. I know Jacoco has been mentioned.. maybe [math] wants
>>>> to
>>>> be the guinea pig?
>>>>
>>>
>>> Yes !
>>>
>>> I already use Jacoco elsewhere and am very happy with it. It is also used
>>> in our
>>> Sonar instance if I remember correctly.
>>>
>>> The only point I had to adjust in the other project was to set up manually
>>> an entry in
>>> the site menu to point to the generated html pages, as jacoco was not
>>> fully integrated
>>> in the regular reports produced by maven. Is there a complete integration
>>> available now?
>>>
>>> Luc
>>>
>>>
>>>> Gary
>>>>
>>>
>>>
>>> ------------------------------**------------------------------**---------
>>> To unsubscribe, e-mail: dev-unsubscribe@commons.**apache.org<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


Mime
View raw message