Re: How to get code coverage of Integration Test ?

2014-11-28 Thread Stephan Windmüller
On 29.01.2013, Lenny Primak wrote:

> Have you tried running in production mode?  That might work better. 

Just tested it, enabling production mode has no effect.

- Stephan

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: How to get code coverage of Integration Test ?

2014-11-28 Thread Stephan Windmüller
On 28.01.2013, Julien Smadja wrote:

> 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.

This post is rather old, but I stumpled upon this problem again and
thought about sharing a possible solution.

As explained in the FAQ[0] of Jacoco, there can be issues when classes
are changed in the application server, this changing the class id[1].
There are two possible solutions:

1. Specify a classdumpdir for the agent and use those classes for reporting.

2. Use offline instrumentation.

Both worked for me, but the first option produced duplicates of classes
which caused the reporting to fail.

Regards
 Stephan

[0] http://www.eclemma.org/jacoco/trunk/doc/faq.html
[1] http://www.eclemma.org/jacoco/trunk/doc/classids.html
[2] http://www.eclemma.org/jacoco/trunk/doc/offline.html

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org