> I am not familiar with Cobertura and need to understand 
> better what it takes to make it work for Eclipse and/or OSGi 
> applications. Can you confirm the following assumptions are 
> correct and/or point me to relevant Cobertura documentation
> 
> 1. application and test classes need to be instrumented with 
> metric collection "hooks" during the build time 

Typically only application classes are instrumented.

> 2. 
> instrumented code requires some support libraries at runtime 

That is true. Yyou need to add this libraries in the boot 
classpath (this works for emma as well as cobertura).

> 3. collected data needs to be processed into human readable 
> report after the test

Yes, this is currently automatically done in the maven goal 
cobertura:cobertura (when configured in the pom). (Or you 
use a CI server to publish the results.)

> 
> Also, do you know if Cobertura has explicit support for 
> testing eclipse and/or OSGi applications?
> 

I think there is no expliecit support required. We're using 
maven and the "normal" cobertura to build and test our Eclipse 
Plug-ins. The psteclipse acts as a bridge between cobertura
and Eclipse plug-in [1]. Maybe looking at their source code
helps to understand the details. 

Ulli

[1]
http://www.eclipse.org/articles/article.php?file=Article-Eclipse-and-Mav
en2/index.html

> Also, lets move this discussion to 
> [email protected], if you do not mind.
> 
> --
> Regards,
> Igor
> 
> Hansen Candrawinata wrote:
> > I think having test coverage support is always good.  I do not have 
> > any particular requirements at this stage (other than it should of 
> > course be able to interact with the test coverage tool as 
> seamless as possible).
> > 
> > FYI, I just tried Tycho with Cobertura, and it gave an error 
> > complaining about dependency to the test plugin could not 
> be resolved.  
> > I ran  'mvn cobertura:cobertura' from the parent pom directory that 
> > contains several modules (one of which is the test plugin). 
>  Note that 'mvn integration-test'
> > ran without problems.
> > 
> > This is maybe a premature question having known that Tycho has not 
> > been tested with any test coverage tool yet, but if I want 
> to try to 
> > get Tycho up and going with Cobertura possibly with some tweaks, do 
> > you think this is possible at this stage at all (just 
> wanted to have 
> > an answer that I can pass on to my colleagues)?
> > 
> > 
> > Igor Fedorenko-4 wrote:
> >> The most direct and honest answer is probably "no". This came up 
> >> several times in our internal discussions, but we have not 
> tried any 
> >> test coverage tool with Tycho yet.
> >>
> >> Adding such support seems like an appropriate discussion topic for 
> >> the new tycho-users mailing list we just setup [1]. So if you have 
> >> particular tool in mind and/or can provide general 
> requirements, you 
> >> can subscribe to the list by sending email to 
> >> [email protected]
> >>
> >> [1]
> >> 
> http://www.sonatype.com/people/2009/03/the-future-of-maven-osgi-join-
> >> the-tycho-users-mailing-list/
> >> --
> >> Regards,
> >> Igor
> >>
> 
> 

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

    http://xircles.codehaus.org/manage_email


Reply via email to