Re: How to get code coverage of Integration Test ?

2013-01-29 Thread Julien Smadja
Thank you, I'll test your solution with Idea 12, and I'll tell you if it
works too.


2013/1/29 Stephan Windmüller stephan.windmuel...@tu-dortmund.de

 On 28.01.2013 15:58, Julien Smadja wrote:

  I have a coverage percent for classes in packages like domain, but
 nothing
  in pages or components.
 
  Do you have a solution for this ? Is this a problem with javassist ?

 IIRC we had the same problem using EMMA[0].

 What did work was the code coverage integrated in IntelliJ IDEA[1]. We
 started our application server from within the IDE and were able to
 measure the code coverage of Tapestry pages.

 HTH
  Stephan

 [0] http://emma.sourceforge.net/
 [1] http://www.jetbrains.com/idea/webhelp/code-coverage-2.html




-- 

*Julien Smadja*

 Email : jsma...@xebia.fr

Mobile : +33(0)6 59 11 72 31

http://www.xebia.fr

http://blog.xebia.fr

*Siège Social*

La Défense Colisée

10 / 12 Avenue de l'arche

Faubourg de l'Arche

92419 Courbevoie Cedex


Re: How to get code coverage of Integration Test ?

2013-01-29 Thread Julien Smadja
Yes, it works.

I had to use Tomcat server instead of mvn tomcat:run command in Intellij
Idea.

Unfortunately, I think I won't be able to automatize this task.

Thank you for your answer.


How to get code coverage of Integration Test ?

2013-01-28 Thread Julien Smadja
Hello,

I'm working on a  40K lines of code project.

We're using :

tapestry-release-version5.3.3/tapestry-release-version

tapestry-security-version0.4.4/tapestry-security-version

got5-release-version3.3.3/got5-release-version

jacoco.version0.6.1.201212231917/jacoco.version

I'm launching my application with *mvn clean tomcat:run* with agent : *
-javaagent:/Users/juliensmadja/.m2/repository/org/jacoco/org.jacoco.agent/0.6.1.201212231917/jacocoagent.jar=destfile=/tmp/jacoco.file.path
*

Then, I launch my selenium tests.

After the execution,  I start my *Sonar 3.4.1* and execute goal *
sonar:sonar *on my project*.*

*mvn sonar:sonar -Dsonar.jacoco.itReportPath=/tmp/jacoco.dump -fn*

And my problem is : *tapestry's components, pages, forms don't seem to be
instrumented* because there is no coverage when watching in Sonar Report.

I have a coverage percent for classes in packages like domain, but nothing
in pages or components.

Do you have a solution for this ? Is this a problem with javassist ?

Thank you

-- 

*Julien Smadja*

 Email : jsma...@xebia.fr

Mobile : +33(0)6 59 11 72 31

http://www.xebia.fr

http://blog.xebia.fr

*Siège Social*

La Défense Colisée

10 / 12 Avenue de l'arche

Faubourg de l'Arche

92419 Courbevoie Cedex