How do we generate code coverage report for webservices using cobertura

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

How do we generate code coverage report for webservices using cobertura

by saifkamaal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I am using maven plugin to generate code coverage reports for webservices. The report shows 0% coverage.

The following plugin is used

<plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>cobertura-maven-plugin</artifactId>
                <configuration>
                        <formats>
                                <format>html</format>
                                <format>xml</format>
                        </formats>
                </configuration>
</plugin>
                       
<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                        <version>2.3</version>
                <configuration>
                       <skip>false</skip>
                </configuration>
</plugin>


I am using the following command mvn cobertura:cobertura

Do i have to copy the cobertura.ser file somewhere??

Plz help.

Re: How do we generate code coverage report for webservices using cobertura

by John W. Lewis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I don't know a lot about maven, but I would be surprised if there was cobertura/maven support for anything that is deployed on a webapp server because the deployment is a bit tricky.

Hopefully, I am wrong and the maven experts on this list will correct me.

Anyhow, you can do it with the ant tasks, so if you are willing to use the ant tasks from maven that may be an option.  The general idea is that you have to instrument the war/ear file before it is deployed to the server.   The cobertura.ser file is usually copied to the working directory of the server as well.

John

-----Original Message-----
From: cobertura-devel-bounces@... [mailto:cobertura-devel-bounces@...] On Behalf Of saifkamaal
Sent: Wednesday, June 25, 2008 11:17 AM
To: cobertura-devel@...
Subject: [Cobertura-devel] How do we generate code coverage report for webservices using cobertura


Hi,

I am using maven plugin to generate code coverage reports for webservices.
The report shows 0% coverage.

The following plugin is used

<plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>cobertura-maven-plugin</artifactId>
                <configuration>
                        <formats>
                                <format>html</format>
                                <format>xml</format>
                        </formats>
                </configuration>
</plugin>

<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                        <version>2.3</version>
                <configuration>
                       <skip>false</skip>
                </configuration>
</plugin>


I am using the following command mvn cobertura:cobertura

Do i have to copy the cobertura.ser file somewhere??

Plz help.
--
View this message in context: http://www.nabble.com/How-do-we-generate-code-coverage-report-for-webservices-using-cobertura-tp18115008p18115008.html
Sent from the cobertura-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Cobertura-devel mailing list
Cobertura-devel@...
https://lists.sourceforge.net/lists/listinfo/cobertura-devel


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Cobertura-devel mailing list
Cobertura-devel@...
https://lists.sourceforge.net/lists/listinfo/cobertura-devel

Re: How do we generate code coverage report for webservices using cobertura

by saifkamaal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks John for your reply.

I have already tried using ant for the same i.e. instrument the jar file before deploying it on the weblogic server and copied the cobertura.ser to the bin directory of the server domain. But strangely I get the same  result as that with maven. (0% coverage)

John W. Lewis wrote:
I don't know a lot about maven, but I would be surprised if there was cobertura/maven support for anything that is deployed on a webapp server because the deployment is a bit tricky.

Hopefully, I am wrong and the maven experts on this list will correct me.

Anyhow, you can do it with the ant tasks, so if you are willing to use the ant tasks from maven that may be an option.  The general idea is that you have to instrument the war/ear file before it is deployed to the server.   The cobertura.ser file is usually copied to the working directory of the server as well.

John

-----Original Message-----
From: cobertura-devel-bounces@lists.sourceforge.net [mailto:cobertura-devel-bounces@lists.sourceforge.net] On Behalf Of saifkamaal
Sent: Wednesday, June 25, 2008 11:17 AM
To: cobertura-devel@lists.sourceforge.net
Subject: [Cobertura-devel] How do we generate code coverage report for webservices using cobertura


Hi,

I am using maven plugin to generate code coverage reports for webservices.
The report shows 0% coverage.

The following plugin is used

<plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>cobertura-maven-plugin</artifactId>
                <configuration>
                        <formats>
                                <format>html</format>
                                <format>xml</format>
                        </formats>
                </configuration>
</plugin>

<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                        <version>2.3</version>
                <configuration>
                       <skip>false</skip>
                </configuration>
</plugin>


I am using the following command mvn cobertura:cobertura

Do i have to copy the cobertura.ser file somewhere??

Plz help.
--
View this message in context: http://www.nabble.com/How-do-we-generate-code-coverage-report-for-webservices-using-cobertura-tp18115008p18115008.html
Sent from the cobertura-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Cobertura-devel mailing list
Cobertura-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cobertura-devel


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Cobertura-devel mailing list
Cobertura-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cobertura-devel

Re: How do we generate code coverage report for webservices using cobertura

by John W. Lewis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


It has been a while, but for weblogic, we had to copy the cobertura.ser file to user_projects/domains/<domain>.

-----Original Message-----
From: cobertura-devel-bounces@... [mailto:cobertura-devel-bounces@...] On Behalf Of saifkamaal
Sent: Monday, June 30, 2008 12:47 AM
To: cobertura-devel@...
Subject: Re: [Cobertura-devel] How do we generate code coverage report for webservices using cobertura


Thanks John for your reply.

I have already tried using ant for the same i.e. instrument the jar file
before deploying it on the weblogic server and copied the cobertura.ser to
the bin directory of the server domain. But strangely I get the same  result
as that with maven. (0% coverage)


John W. Lewis wrote:

>
>
> I don't know a lot about maven, but I would be surprised if there was
> cobertura/maven support for anything that is deployed on a webapp server
> because the deployment is a bit tricky.
>
> Hopefully, I am wrong and the maven experts on this list will correct me.
>
> Anyhow, you can do it with the ant tasks, so if you are willing to use the
> ant tasks from maven that may be an option.  The general idea is that you
> have to instrument the war/ear file before it is deployed to the server.
> The cobertura.ser file is usually copied to the working directory of the
> server as well.
>
> John
>
> -----Original Message-----
> From: cobertura-devel-bounces@...
> [mailto:cobertura-devel-bounces@...] On Behalf Of
> saifkamaal
> Sent: Wednesday, June 25, 2008 11:17 AM
> To: cobertura-devel@...
> Subject: [Cobertura-devel] How do we generate code coverage report for
> webservices using cobertura
>
>
> Hi,
>
> I am using maven plugin to generate code coverage reports for webservices.
> The report shows 0% coverage.
>
> The following plugin is used
>
> <plugin>
>                 <groupId>org.codehaus.mojo</groupId>
>                 <artifactId>cobertura-maven-plugin</artifactId>
>                 <configuration>
>                         <formats>
>                                 <format>html</format>
>                                 <format>xml</format>
>                         </formats>
>                 </configuration>
> </plugin>
>
> <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-surefire-plugin</artifactId>
>                         <version>2.3</version>
>                 <configuration>
>                        <skip>false</skip>
>                 </configuration>
> </plugin>
>
>
> I am using the following command mvn cobertura:cobertura
>
> Do i have to copy the cobertura.ser file somewhere??
>
> Plz help.
> --
> View this message in context:
> http://www.nabble.com/How-do-we-generate-code-coverage-report-for-webservices-using-cobertura-tp18115008p18115008.html
> Sent from the cobertura-devel mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Cobertura-devel mailing list
> Cobertura-devel@...
> https://lists.sourceforge.net/lists/listinfo/cobertura-devel
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Cobertura-devel mailing list
> Cobertura-devel@...
> https://lists.sourceforge.net/lists/listinfo/cobertura-devel
>
>

--
View this message in context: http://www.nabble.com/How-do-we-generate-code-coverage-report-for-webservices-using-cobertura-tp18115008p18188635.html
Sent from the cobertura-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Cobertura-devel mailing list
Cobertura-devel@...
https://lists.sourceforge.net/lists/listinfo/cobertura-devel


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Cobertura-devel mailing list
Cobertura-devel@...
https://lists.sourceforge.net/lists/listinfo/cobertura-devel

Re: How do we generate code coverage report for webservices using cobertura

by saifkamaal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Exactly this is what I did ...but no results.
John W. Lewis wrote:
It has been a while, but for weblogic, we had to copy the cobertura.ser file to user_projects/domains/<domain>.

-----Original Message-----
From: cobertura-devel-bounces@lists.sourceforge.net [mailto:cobertura-devel-bounces@lists.sourceforge.net] On Behalf Of saifkamaal
Sent: Monday, June 30, 2008 12:47 AM
To: cobertura-devel@lists.sourceforge.net
Subject: Re: [Cobertura-devel] How do we generate code coverage report for webservices using cobertura


Thanks John for your reply.

I have already tried using ant for the same i.e. instrument the jar file
before deploying it on the weblogic server and copied the cobertura.ser to
the bin directory of the server domain. But strangely I get the same  result
as that with maven. (0% coverage)


John W. Lewis wrote:
>
>
> I don't know a lot about maven, but I would be surprised if there was
> cobertura/maven support for anything that is deployed on a webapp server
> because the deployment is a bit tricky.
>
> Hopefully, I am wrong and the maven experts on this list will correct me.
>
> Anyhow, you can do it with the ant tasks, so if you are willing to use the
> ant tasks from maven that may be an option.  The general idea is that you
> have to instrument the war/ear file before it is deployed to the server.
> The cobertura.ser file is usually copied to the working directory of the
> server as well.
>
> John
>
> -----Original Message-----
> From: cobertura-devel-bounces@lists.sourceforge.net
> [mailto:cobertura-devel-bounces@lists.sourceforge.net] On Behalf Of
> saifkamaal
> Sent: Wednesday, June 25, 2008 11:17 AM
> To: cobertura-devel@lists.sourceforge.net
> Subject: [Cobertura-devel] How do we generate code coverage report for
> webservices using cobertura
>
>
> Hi,
>
> I am using maven plugin to generate code coverage reports for webservices.
> The report shows 0% coverage.
>
> The following plugin is used
>
> <plugin>
>                 <groupId>org.codehaus.mojo</groupId>
>                 <artifactId>cobertura-maven-plugin</artifactId>
>                 <configuration>
>                         <formats>
>                                 <format>html</format>
>                                 <format>xml</format>
>                         </formats>
>                 </configuration>
> </plugin>
>
> <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-surefire-plugin</artifactId>
>                         <version>2.3</version>
>                 <configuration>
>                        <skip>false</skip>
>                 </configuration>
> </plugin>
>
>
> I am using the following command mvn cobertura:cobertura
>
> Do i have to copy the cobertura.ser file somewhere??
>
> Plz help.
> --
> View this message in context:
> http://www.nabble.com/How-do-we-generate-code-coverage-report-for-webservices-using-cobertura-tp18115008p18115008.html
> Sent from the cobertura-devel mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Cobertura-devel mailing list
> Cobertura-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cobertura-devel
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Cobertura-devel mailing list
> Cobertura-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cobertura-devel
>
>

--
View this message in context: http://www.nabble.com/How-do-we-generate-code-coverage-report-for-webservices-using-cobertura-tp18115008p18188635.html
Sent from the cobertura-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Cobertura-devel mailing list
Cobertura-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cobertura-devel


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Cobertura-devel mailing list
Cobertura-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cobertura-devel
LightInTheBox - Buy quality products at wholesale price