Jacoco w / Jetty + Selenium RC

I come back here because I have some kind of problem. (I sent 2 or 3 questions before about the project I'm working on, this question is still related to this project)
So I have a smartGWT application that I create using Maven. For unit test, I had to use Selenium RC (to use user-extensions.js provided by smartClient), and since it must be compatible with continuous integration, I had to deploy webapp in the Jetty container, Now I have one problem left:
How can I use Jacoco with Jetty so Sonar recognizes my tests and gives me code coverage?

Is there a property in the berth-maven plugin that allows me to run jacoco-agent every time I deploy the application?

Thanks in advance, again =)
(Sorry for my bad English)

+3
source share
2 answers

Your only option seems to be a plugin to download.

As described in the link to the duplicate question, Jetty runs in the same JVM as Maven.

Therefore, if JVM options are not possible, you need to use the plugin to load it.

+1
source

The maven-jetty plugin recently added support for launching the berth in a separate JVM, ala-load, so you might be lucky: http://jira.codehaus.org/browse/JETTY-991 . Otherwise, you can use the load (this is what I do).

0
source

All Articles