Re: [maven] jcoverage examples please?

2005-07-20 Thread Jamie Bisotti
Seems maven-cobertura-plugin 1.0 is not working; file a JIRA issue.  I
don't think it matters if you are using 1.0.2 or 1.1-beta.

On 7/20/05, Scott Lamb <[EMAIL PROTECTED]> wrote:
> On Jul 20, 2005, at 2:42 PM, Mick Knutson wrote:
> 
> > Sorry, I mean that I get the Cobertura  reports being generated,
> > but it says that there are no tests, and 0% coverage on all of my
> > projects.
> 
> I've had this problem lately, too. It used to work, but one of the
> more recent snapshots broke it for me. (Looks like 1.0 proper is out
> now, too. It doesn't work for me.) Another developer here can do them
> fine. I suspect it has something to do with your version of maven - I
> think he's been always on 1.0.2. I've upgraded some components as
> recommended on the download page and played with maven 1.1 beta 1.
> 
> I've been meaning to take this up on the maven-plugins-
> [EMAIL PROTECTED] list. It seems the appropriate place.
> 
> --
> Scott Lamb 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Jamie Bisotti
Software Engineer
Lexmark International, Inc.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [maven] jcoverage examples please?

2005-07-20 Thread Scott Lamb

On Jul 20, 2005, at 2:42 PM, Mick Knutson wrote:

Sorry, I mean that I get the Cobertura  reports being generated,  
but it says that there are no tests, and 0% coverage on all of my  
projects.


I've had this problem lately, too. It used to work, but one of the  
more recent snapshots broke it for me. (Looks like 1.0 proper is out  
now, too. It doesn't work for me.) Another developer here can do them  
fine. I suspect it has something to do with your version of maven - I  
think he's been always on 1.0.2. I've upgraded some components as  
recommended on the download page and played with maven 1.1 beta 1.


I've been meaning to take this up on the maven-plugins- 
[EMAIL PROTECTED] list. It seems the appropriate place.


--
Scott Lamb 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [maven] jcoverage examples please?

2005-07-20 Thread Mick Knutson
Sorry, I mean that I get the Cobertura  reports being generated, but it says 
that there are no tests, and 0% coverage on all of my projects.
I know I might have a low test coverage, but definately not 0%. Even if it 
was just 30% I would believe that, but not zero.






From: Carlos Sanchez <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: Maven Users List 
Subject: Re: [maven] jcoverage examples please?
Date: Wed, 20 Jul 2005 14:34:48 -0700

Add
 maven-cobertura-plugin
to the reports section and you'll get it when building the site



maven-cobertura-plugin



On 7/20/05, Mick Knutson <[EMAIL PROTECTED]> wrote:
> OK, I ran it like you said in my maven multiproject:site-deploy as one 
of

> the report plugins.
>
> Now each of my 8 subprojects have 50 to 200 unit tests each. However, 
_ALL_

> of the 8 Cobertura reports showed zero tests where run at all.
>
> So what am I missing to get Cobertura to see my unit tests and operate
> properly?
>
>
>
>
> >From: Andy Glick <[EMAIL PROTECTED]>
> >Reply-To: "Maven Users List" 
> >To: users@maven.apache.org
> >Subject: Re: [maven] jcoverage examples please?
> >Date: Wed, 20 Jul 2005 14:05:32 -0400
> >
> >Mick Knutson wrote:
> >>Can you please show me your Maven cfg then for this please?
> >>
> >>
> >>
> >>>From: Carlos Sanchez <[EMAIL PROTECTED]>
> >>>Reply-To: [EMAIL PROTECTED]
> >>>To: Maven Users List 
> >>>Subject: Re: [maven] jcoverage examples please?
> >>>Date: Tue, 19 Jul 2005 16:18:23 -0700
> >>>
> >>>Hi,
> >>>
> >>>I suggest you to take a look at the cobertura plugin. Cobertura is a
> >>>fork of jcoverage actively developed, while jcoverage seems stalled.
> >>>
> >>>http://maven-plugins.sourceforge.net//maven-cobertura-plugin/
> >
> >Mick,
> >
> >I just did a couple of experiments with both the jcoverage and the
> >cobertura plugins with a Maven project on which I had never used 
either.

> >
> >If you download the plugins into your ${MAVEN_HOME}/plugins directory, 
you

> >can simply invoke the default goals of each plugin:
> >
> >"maven [clean] jcoverage cobertura"
> >
> >It isn't necessary that you execute the "clean" goal, I included it as 
an

> >option so that, if you use it, you will be able to see all of the
> >goals/subgoals that Maven will execute as it prepares your project for
> >instrumentation and then later as the test sets are run.
> >
> >Unless you have special requirements that is all you have to do during 
your

> >normal development cycle, and since JCoverage and Cobertura are pretty
> >similar, you can choose between them. As was already said, Cobertura is 
the
> >active fork of the now moribund open source bits of the JCoverage 
project

> >(JCoverage continues to be developed and enhanced, but that version is
> >commercial.)
> >
> >If you were to add a reference to the maven-cobertura-plugin to the 
reports
> >section of your pom (project.xml) file, then, if and when you generate 
a
> >website for your project using Maven, it will include the Cobertura 
HTML

> >report in the generated site.
> >
> >If there are specific things that you need to tweak, take a look at the
> >properties available to you on the plugin's website.
> >
> >I hope that this helps. If you have more detailed questions, don't 
hesitate

> >to email me directly and I'll attempt to offer more assistance.
> >
> >Best regards,
> >
> >Andy
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> Thank You
> Mick Knutson
>
> Sr. Java/J2EE Consultant
> BASE logic, inc.
> (415) 648-1804 (S.F., CA)
> http://www.BASELogic.com
>
> HP Consulting Services (Walnut Creek, CA)
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Thank You
Mick Knutson

Sr. Java/J2EE Consultant
BASE logic, inc.
(415) 648-1804 (S.F., CA)
http://www.BASELogic.com

HP Consulting Services (Walnut Creek, CA)



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [maven] jcoverage examples please?

2005-07-20 Thread Carlos Sanchez
Add
 maven-cobertura-plugin
to the reports section and you'll get it when building the site



maven-cobertura-plugin



On 7/20/05, Mick Knutson <[EMAIL PROTECTED]> wrote:
> OK, I ran it like you said in my maven multiproject:site-deploy as one of
> the report plugins.
> 
> Now each of my 8 subprojects have 50 to 200 unit tests each. However, _ALL_
> of the 8 Cobertura reports showed zero tests where run at all.
> 
> So what am I missing to get Cobertura to see my unit tests and operate
> properly?
> 
> 
> 
> 
> >From: Andy Glick <[EMAIL PROTECTED]>
> >Reply-To: "Maven Users List" 
> >To: users@maven.apache.org
> >Subject: Re: [maven] jcoverage examples please?
> >Date: Wed, 20 Jul 2005 14:05:32 -0400
> >
> >Mick Knutson wrote:
> >>Can you please show me your Maven cfg then for this please?
> >>
> >>
> >>
> >>>From: Carlos Sanchez <[EMAIL PROTECTED]>
> >>>Reply-To: [EMAIL PROTECTED]
> >>>To: Maven Users List 
> >>>Subject: Re: [maven] jcoverage examples please?
> >>>Date: Tue, 19 Jul 2005 16:18:23 -0700
> >>>
> >>>Hi,
> >>>
> >>>I suggest you to take a look at the cobertura plugin. Cobertura is a
> >>>fork of jcoverage actively developed, while jcoverage seems stalled.
> >>>
> >>>http://maven-plugins.sourceforge.net//maven-cobertura-plugin/
> >
> >Mick,
> >
> >I just did a couple of experiments with both the jcoverage and the
> >cobertura plugins with a Maven project on which I had never used either.
> >
> >If you download the plugins into your ${MAVEN_HOME}/plugins directory, you
> >can simply invoke the default goals of each plugin:
> >
> >"maven [clean] jcoverage cobertura"
> >
> >It isn't necessary that you execute the "clean" goal, I included it as an
> >option so that, if you use it, you will be able to see all of the
> >goals/subgoals that Maven will execute as it prepares your project for
> >instrumentation and then later as the test sets are run.
> >
> >Unless you have special requirements that is all you have to do during your
> >normal development cycle, and since JCoverage and Cobertura are pretty
> >similar, you can choose between them. As was already said, Cobertura is the
> >active fork of the now moribund open source bits of the JCoverage project
> >(JCoverage continues to be developed and enhanced, but that version is
> >commercial.)
> >
> >If you were to add a reference to the maven-cobertura-plugin to the reports
> >section of your pom (project.xml) file, then, if and when you generate a
> >website for your project using Maven, it will include the Cobertura HTML
> >report in the generated site.
> >
> >If there are specific things that you need to tweak, take a look at the
> >properties available to you on the plugin's website.
> >
> >I hope that this helps. If you have more detailed questions, don't hesitate
> >to email me directly and I'll attempt to offer more assistance.
> >
> >Best regards,
> >
> >Andy
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> Thank You
> Mick Knutson
> 
> Sr. Java/J2EE Consultant
> BASE logic, inc.
> (415) 648-1804 (S.F., CA)
> http://www.BASELogic.com
> 
> HP Consulting Services (Walnut Creek, CA)
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [maven] jcoverage examples please?

2005-07-20 Thread Mick Knutson
OK, I ran it like you said in my maven multiproject:site-deploy as one of 
the report plugins.


Now each of my 8 subprojects have 50 to 200 unit tests each. However, _ALL_ 
of the 8 Cobertura reports showed zero tests where run at all.


So what am I missing to get Cobertura to see my unit tests and operate 
properly?






From: Andy Glick <[EMAIL PROTECTED]>
Reply-To: "Maven Users List" 
To: users@maven.apache.org
Subject: Re: [maven] jcoverage examples please?
Date: Wed, 20 Jul 2005 14:05:32 -0400

Mick Knutson wrote:

Can you please show me your Maven cfg then for this please?




From: Carlos Sanchez <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: Maven Users List 
Subject: Re: [maven] jcoverage examples please?
Date: Tue, 19 Jul 2005 16:18:23 -0700

Hi,

I suggest you to take a look at the cobertura plugin. Cobertura is a
fork of jcoverage actively developed, while jcoverage seems stalled.

http://maven-plugins.sourceforge.net//maven-cobertura-plugin/


Mick,

I just did a couple of experiments with both the jcoverage and the 
cobertura plugins with a Maven project on which I had never used either.


If you download the plugins into your ${MAVEN_HOME}/plugins directory, you 
can simply invoke the default goals of each plugin:


"maven [clean] jcoverage cobertura"

It isn't necessary that you execute the "clean" goal, I included it as an 
option so that, if you use it, you will be able to see all of the 
goals/subgoals that Maven will execute as it prepares your project for 
instrumentation and then later as the test sets are run.


Unless you have special requirements that is all you have to do during your 
normal development cycle, and since JCoverage and Cobertura are pretty 
similar, you can choose between them. As was already said, Cobertura is the 
active fork of the now moribund open source bits of the JCoverage project 
(JCoverage continues to be developed and enhanced, but that version is 
commercial.)


If you were to add a reference to the maven-cobertura-plugin to the reports 
section of your pom (project.xml) file, then, if and when you generate a 
website for your project using Maven, it will include the Cobertura HTML 
report in the generated site.


If there are specific things that you need to tweak, take a look at the 
properties available to you on the plugin's website.


I hope that this helps. If you have more detailed questions, don't hesitate 
to email me directly and I'll attempt to offer more assistance.


Best regards,

Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Thank You
Mick Knutson

Sr. Java/J2EE Consultant
BASE logic, inc.
(415) 648-1804 (S.F., CA)
http://www.BASELogic.com

HP Consulting Services (Walnut Creek, CA)



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [maven] jcoverage examples please?

2005-07-20 Thread Andy Glick

Mick Knutson wrote:

Can you please show me your Maven cfg then for this please?




From: Carlos Sanchez <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: Maven Users List 
Subject: Re: [maven] jcoverage examples please?
Date: Tue, 19 Jul 2005 16:18:23 -0700

Hi,

I suggest you to take a look at the cobertura plugin. Cobertura is a
fork of jcoverage actively developed, while jcoverage seems stalled.

http://maven-plugins.sourceforge.net//maven-cobertura-plugin/


Mick,

I just did a couple of experiments with both the jcoverage and the 
cobertura plugins with a Maven project on which I had never used either.


If you download the plugins into your ${MAVEN_HOME}/plugins directory, 
you can simply invoke the default goals of each plugin:


"maven [clean] jcoverage cobertura"

It isn't necessary that you execute the "clean" goal, I included it as 
an option so that, if you use it, you will be able to see all of the 
goals/subgoals that Maven will execute as it prepares your project for 
instrumentation and then later as the test sets are run.


Unless you have special requirements that is all you have to do during 
your normal development cycle, and since JCoverage and Cobertura are 
pretty similar, you can choose between them. As was already said, 
Cobertura is the active fork of the now moribund open source bits of the 
JCoverage project (JCoverage continues to be developed and enhanced, but 
that version is commercial.)


If you were to add a reference to the maven-cobertura-plugin to the 
reports section of your pom (project.xml) file, then, if and when you 
generate a website for your project using Maven, it will include the 
Cobertura HTML report in the generated site.


If there are specific things that you need to tweak, take a look at the 
properties available to you on the plugin's website.


I hope that this helps. If you have more detailed questions, don't 
hesitate to email me directly and I'll attempt to offer more assistance.


Best regards,

Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [maven] jcoverage examples please?

2005-07-20 Thread Mick Knutson

Can you please show me your Maven cfg then for this please?




From: Carlos Sanchez <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: Maven Users List 
Subject: Re: [maven] jcoverage examples please?
Date: Tue, 19 Jul 2005 16:18:23 -0700

Hi,

I suggest you to take a look at the cobertura plugin. Cobertura is a
fork of jcoverage actively developed, while jcoverage seems stalled.

http://maven-plugins.sourceforge.net//maven-cobertura-plugin/

Regards

On 7/19/05, Mick Knutson <[EMAIL PROTECTED]> wrote:
> Can someone please give me a jcoverage example for my maven build?
>
>
> Thank You
> Mick Knutson
>
> Sr. Java/J2EE Consultant
> BASE logic, inc.
> (415) 648-1804 (S.F., CA)
> http://www.BASELogic.com
>
> HP Consulting Services (Walnut Creek, CA)
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Thank You
Mick Knutson

Sr. Java/J2EE Consultant
BASE logic, inc.
(415) 648-1804 (S.F., CA)
http://www.BASELogic.com

HP Consulting Services (Walnut Creek, CA)



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [maven] jcoverage examples please?

2005-07-19 Thread Carlos Sanchez
Hi,

I suggest you to take a look at the cobertura plugin. Cobertura is a
fork of jcoverage actively developed, while jcoverage seems stalled.

http://maven-plugins.sourceforge.net//maven-cobertura-plugin/

Regards

On 7/19/05, Mick Knutson <[EMAIL PROTECTED]> wrote:
> Can someone please give me a jcoverage example for my maven build?
> 
> 
> Thank You
> Mick Knutson
> 
> Sr. Java/J2EE Consultant
> BASE logic, inc.
> (415) 648-1804 (S.F., CA)
> http://www.BASELogic.com
> 
> HP Consulting Services (Walnut Creek, CA)
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]