Thanks Martin!  Time to write more tests.<br><br><div class="gmail_quote">On Fri, May 7, 2010 at 2:53 AM, Martin Gencur <span dir="ltr">&lt;<a href="mailto:mgencur@redhat.com" target="_blank">mgencur@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello all,<br>
I&#39;ve been recently working on code coverage reports for Seam 3 modules.<br>
So far, you can see the results in a few Hudson jobs, namely:<br>
<a href="http://hudson.qa.jboss.com/hudson/view/Seam%" target="_blank">http://hudson.qa.jboss.com/hudson/view/Seam%</a><br>
203/job/Seam-3.X-international-CI/<br>
<a href="http://hudson.qa.jboss.com/hudson/view/Seam%203/job/Seam-3.X-faces-CI/" target="_blank">http://hudson.qa.jboss.com/hudson/view/Seam%203/job/Seam-3.X-faces-CI/</a><br>
<a href="http://hudson.qa.jboss.com/hudson/view/Seam" target="_blank">http://hudson.qa.jboss.com/hudson/view/Seam</a> 3/job/Seam-3.X-jms-CI<br>
<br>
Just explore the artifacts of certain build. Look for index.html which<br>
is an entry point to code-coverage reports. You can see individual<br>
packages, classes and even methods - all with nice graphic I think:)<br>
<br>
The code coverage is using EMMA framework and in Seam I used various<br>
maven plugins to retrieve the code coverage reports. The root pom.xml of<br>
each module contains a profile named code-coverage. For the modules<br>
where it is needed there is also a definition of the profile in api,<br>
impl submodules. (so far only faces module contains the definition in<br>
api submodule because it&#39;s the only module which has tests in this<br>
section).<br>
<br>
You can still run tests the way you did it until this time. But when you<br>
want to get code-coverage report, run the tests as it is stated in<br>
mentioned hudson jobs.<br>
<br>
For modules which need to run the test in JBossAS you just have to setup<br>
the JBossAS and set JBOSS_HOME property. Maven will automatically start<br>
and stop the container.<br>
<br>
I&#39;m also to add the code-coverage to persistence module. AFAIK the other<br>
modules have either some problems or don&#39;t have any tests. When you want<br>
to add the code-coverage to some other module, ping me or mail me and I<br>
will do that. Or you can do it by yourself.<br>
<br>
<br>
Martin Gencur / Seam QA Team<br>
<br>
<br>
<br>
_______________________________________________<br>
seam-dev mailing list<br>
<a href="mailto:seam-dev@lists.jboss.org" target="_blank">seam-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/seam-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/seam-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Jordan Ganoff<br>