[seam-dev] Code coverage for Seam 3 modules

Marcin Zajączkowski mszpak at wp.pl
Fri May 7 16:16:12 EDT 2010


On 2010-05-07 08:53, Martin Gencur wrote:
> Hello all,
> I've been recently working on code coverage reports for Seam 3 modules.
> So far, you can see the results in a few Hudson jobs, namely:
> http://hudson.qa.jboss.com/hudson/view/Seam%
> 203/job/Seam-3.X-international-CI/
> http://hudson.qa.jboss.com/hudson/view/Seam%203/job/Seam-3.X-faces-CI/
> http://hudson.qa.jboss.com/hudson/view/Seam 3/job/Seam-3.X-jms-CI

Nice, but is hudson.qa.jboss.com available outside JBoss?

$ host hudson.qa.jboss.com
Host hudson.qa.jboss.com not found: 3(NXDOMAIN)


I was able to find some report on hudson.jboss.org:
http://hudson.jboss.org/hudson/job/Seam-3.X-faces-CI/73/artifact/faces-trunk/impl/target/site/emma/index.html

Are they the same?


Pozdrawiam
Marcin


> 
> Just explore the artifacts of certain build. Look for index.html which
> is an entry point to code-coverage reports. You can see individual
> packages, classes and even methods - all with nice graphic I think:)
> 
> The code coverage is using EMMA framework and in Seam I used various
> maven plugins to retrieve the code coverage reports. The root pom.xml of
> each module contains a profile named code-coverage. For the modules
> where it is needed there is also a definition of the profile in api,
> impl submodules. (so far only faces module contains the definition in
> api submodule because it's the only module which has tests in this
> section).
> 
> You can still run tests the way you did it until this time. But when you
> want to get code-coverage report, run the tests as it is stated in
> mentioned hudson jobs.
> 
> For modules which need to run the test in JBossAS you just have to setup
> the JBossAS and set JBOSS_HOME property. Maven will automatically start
> and stop the container.
> 
> I'm also to add the code-coverage to persistence module. AFAIK the other
> modules have either some problems or don't have any tests. When you want
> to add the code-coverage to some other module, ping me or mail me and I
> will do that. Or you can do it by yourself.
> 
> 
> Martin Gencur / Seam QA Team
> 
> 
> 
> _______________________________________________
> seam-dev mailing list
> seam-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/seam-dev
> 
> 



More information about the seam-dev mailing list