Quantcast

code-coverage plugin: running unit and integration tests separately

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

code-coverage plugin: running unit and integration tests separately

Brian Doyle
I'm using the code-coverage plugin and need to run the unit and
integration tests separately like:

grails test-app unit: -coverage
grails test-app integration: -coverage

Is there a way combine the coverage data to generate one report after
running both of these types of tests separately?

--
Brian Doyle
Director of Engineering @ Closely
1822 Blake St.
Denver, CO 80202
@brian_doyle - Twitter

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: code-coverage plugin: running unit and integration tests separately

bksaville
You will need to use a separate cobertura.ser data files for each one (I don't recall how using the plugin off the top of my head, but it is possible with straight cobertura), then merge them using the cobertura-merge CLI command, then generate the report afterwards.  I believe the plugin won't help you with must of this, but using the CLI is very easy and possible - or write scripts to use the cobertura ant tasks.

Hope that at least points you in the right direction.
-Brian

On Sat, Aug 4, 2012 at 8:29 AM, Brian Doyle <[hidden email]> wrote:
I'm using the code-coverage plugin and need to run the unit and
integration tests separately like:

grails test-app unit: -coverage
grails test-app integration: -coverage

Is there a way combine the coverage data to generate one report after
running both of these types of tests separately?

--
Brian Doyle
Director of Engineering @ Closely
1822 Blake St.
Denver, CO 80202
@brian_doyle - Twitter

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: code-coverage plugin: running unit and integration tests separately

Matt Sheehan
In reply to this post by Brian Doyle
You can do this:

grails test-app unit: -coverage -noappend
grails test-app integration: -coverage -append

On Sat, Aug 4, 2012 at 9:29 AM, Brian Doyle <[hidden email]> wrote:
I'm using the code-coverage plugin and need to run the unit and
integration tests separately like:

grails test-app unit: -coverage
grails test-app integration: -coverage

Is there a way combine the coverage data to generate one report after
running both of these types of tests separately?

--
Brian Doyle
Director of Engineering @ Closely
1822 Blake St.
Denver, CO 80202
@brian_doyle - Twitter

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: code-coverage plugin: running unit and integration tests separately

Brian Doyle
Thanks Matt, that worked like a charm!

On Sat, Aug 4, 2012 at 4:35 PM, Matt Sheehan <[hidden email]> wrote:

> You can do this:
>
> grails test-app unit: -coverage -noappend
> grails test-app integration: -coverage -append
>
> On Sat, Aug 4, 2012 at 9:29 AM, Brian Doyle <[hidden email]> wrote:
>>
>> I'm using the code-coverage plugin and need to run the unit and
>> integration tests separately like:
>>
>> grails test-app unit: -coverage
>> grails test-app integration: -coverage
>>
>> Is there a way combine the coverage data to generate one report after
>> running both of these types of tests separately?
>>
>> --
>> Brian Doyle
>> Director of Engineering @ Closely
>> 1822 Blake St.
>> Denver, CO 80202
>> @brian_doyle - Twitter
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>     http://xircles.codehaus.org/manage_email
>>
>>
>



--
Brian Doyle
Director of Engineering @ Closely
1822 Blake St.
Denver, CO 80202
@brian_doyle - Twitter

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: code-coverage plugin: running unit and integration tests separately

bksaville
Nice! Didn't even know that existed obviously.  Thanks for the tip Matt.

On Mon, Aug 6, 2012 at 5:46 AM, Brian Doyle <[hidden email]> wrote:
Thanks Matt, that worked like a charm!

On Sat, Aug 4, 2012 at 4:35 PM, Matt Sheehan <[hidden email]> wrote:
> You can do this:
>
> grails test-app unit: -coverage -noappend
> grails test-app integration: -coverage -append
>
> On Sat, Aug 4, 2012 at 9:29 AM, Brian Doyle <[hidden email]> wrote:
>>
>> I'm using the code-coverage plugin and need to run the unit and
>> integration tests separately like:
>>
>> grails test-app unit: -coverage
>> grails test-app integration: -coverage
>>
>> Is there a way combine the coverage data to generate one report after
>> running both of these types of tests separately?
>>
>> --
>> Brian Doyle
>> Director of Engineering @ Closely
>> 1822 Blake St.
>> Denver, CO 80202
>> @brian_doyle - Twitter
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>     http://xircles.codehaus.org/manage_email
>>
>>
>



--
Brian Doyle
Director of Engineering @ Closely
1822 Blake St.
Denver, CO 80202
@brian_doyle - Twitter

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Loading...