Test Coverage on branch and trunk

View: New views
5 Messages — Rating Filter:   Alert me  

Test Coverage on branch and trunk

by Deng Ching-2 :: Rate this Message:

| View Threaded | Show Only this Message

Hi All,

I'll be configuring code coverage on Continuum trunk and 1.3.x branch to
identify which classes still lack tests. I'm considering using either the
Cobertura plugin or the Emma plugin. There is a problem with Cobertura and
war:inplace goal though as we encountered in Archiva (
http://jira.codehaus.org/browse/MRM-636). I've only tried the Emma plugin
briefly once and the experience was pretty good so I'm kind of leaning
towards using it. Any suggestions or comments on this?

Thanks,
Deng

Re: Test Coverage on branch and trunk

by brettporter :: Rate this Message:

| View Threaded | Show Only this Message

+1 for EMMA, since it works in Eclipse and IDEA as well.

On 23/09/2009, at 4:03 PM, Deng Ching wrote:

> Hi All,
>
> I'll be configuring code coverage on Continuum trunk and 1.3.x  
> branch to
> identify which classes still lack tests. I'm considering using  
> either the
> Cobertura plugin or the Emma plugin. There is a problem with  
> Cobertura and
> war:inplace goal though as we encountered in Archiva (
> http://jira.codehaus.org/browse/MRM-636). I've only tried the Emma  
> plugin
> briefly once and the experience was pretty good so I'm kind of leaning
> towards using it. Any suggestions or comments on this?
>
> Thanks,
> Deng


Re: Test Coverage on branch and trunk

by Emmanuel Venisse-2 :: Rate this Message:

| View Threaded | Show Only this Message

+1 too

Emmanuel

On Wed, Sep 23, 2009 at 8:20 AM, Brett Porter <brett@...> wrote:

> +1 for EMMA, since it works in Eclipse and IDEA as well.
>
>
> On 23/09/2009, at 4:03 PM, Deng Ching wrote:
>
>  Hi All,
>>
>> I'll be configuring code coverage on Continuum trunk and 1.3.x branch to
>> identify which classes still lack tests. I'm considering using either the
>> Cobertura plugin or the Emma plugin. There is a problem with Cobertura and
>> war:inplace goal though as we encountered in Archiva (
>> http://jira.codehaus.org/browse/MRM-636). I've only tried the Emma plugin
>> briefly once and the experience was pretty good so I'm kind of leaning
>> towards using it. Any suggestions or comments on this?
>>
>> Thanks,
>> Deng
>>
>
>

Re: Test Coverage on branch and trunk

by Deng Ching-2 :: Rate this Message:

| View Threaded | Show Only this Message

It turns out the Emma plugin is also having the same problem with
war:inplace as Cobertura. I looked at the source code of Emma and it has the
same default lifecycle where the classesDirectory is being set, which is
causing the same error 'Cannot override read-only parameter:
classesDirectory in goal: war:inplace'.

On Wed, Sep 23, 2009 at 5:27 PM, Emmanuel Venisse <
emmanuel.venisse@...> wrote:

> +1 too
>
> Emmanuel
>
> On Wed, Sep 23, 2009 at 8:20 AM, Brett Porter <brett@...> wrote:
>
> > +1 for EMMA, since it works in Eclipse and IDEA as well.
> >
> >
> > On 23/09/2009, at 4:03 PM, Deng Ching wrote:
> >
> >  Hi All,
> >>
> >> I'll be configuring code coverage on Continuum trunk and 1.3.x branch to
> >> identify which classes still lack tests. I'm considering using either
> the
> >> Cobertura plugin or the Emma plugin. There is a problem with Cobertura
> and
> >> war:inplace goal though as we encountered in Archiva (
> >> http://jira.codehaus.org/browse/MRM-636). I've only tried the Emma
> plugin
> >> briefly once and the experience was pretty good so I'm kind of leaning
> >> towards using it. Any suggestions or comments on this?
> >>
> >> Thanks,
> >> Deng
> >>
> >
> >
>

Re: Test Coverage on branch and trunk

by brettporter :: Rate this Message:

| View Threaded | Show Only this Message

I think the use of war:inplace should be removed. It's a nasty hack to  
make jetty:run work with war overlays. I was planning to look at the  
Jetty plugin as I think they have an option to add additional source  
directories now that would mean this and all the obscure clean plugin  
config could go...

- Brett

On 24/09/2009, at 7:07 PM, Deng Ching wrote:

> It turns out the Emma plugin is also having the same problem with
> war:inplace as Cobertura. I looked at the source code of Emma and it  
> has the
> same default lifecycle where the classesDirectory is being set,  
> which is
> causing the same error 'Cannot override read-only parameter:
> classesDirectory in goal: war:inplace'.
>
> On Wed, Sep 23, 2009 at 5:27 PM, Emmanuel Venisse <
> emmanuel.venisse@...> wrote:
>
>> +1 too
>>
>> Emmanuel
>>
>> On Wed, Sep 23, 2009 at 8:20 AM, Brett Porter <brett@...>  
>> wrote:
>>
>>> +1 for EMMA, since it works in Eclipse and IDEA as well.
>>>
>>>
>>> On 23/09/2009, at 4:03 PM, Deng Ching wrote:
>>>
>>> Hi All,
>>>>
>>>> I'll be configuring code coverage on Continuum trunk and 1.3.x  
>>>> branch to
>>>> identify which classes still lack tests. I'm considering using  
>>>> either
>> the
>>>> Cobertura plugin or the Emma plugin. There is a problem with  
>>>> Cobertura
>> and
>>>> war:inplace goal though as we encountered in Archiva (
>>>> http://jira.codehaus.org/browse/MRM-636). I've only tried the Emma
>> plugin
>>>> briefly once and the experience was pretty good so I'm kind of  
>>>> leaning
>>>> towards using it. Any suggestions or comments on this?
>>>>
>>>> Thanks,
>>>> Deng
>>>>
>>>
>>>
>>