Domanda

I come back here because I have some kind of problem. (I posted 2 or 3 questions before about a project I'm working on, this question is still related to this project)
So I have a smartGWT webapplication which I build using Maven. To unit test it, I had to use Selenium RC (to be able to use the user-extensions.js provided by smartClient), and as it must be compatible with the continuous integration, I had to deploy the webapp on a Jetty container. Now I only got one problem left :
How can I use Jacoco with Jetty to make Sonar recognize my tests and give me code coverage ?

Is there a property in the jetty-maven-plugin that allows me to run the jacoco-agent each time the application is deployed ?

Thanks in advance, one more time =)
(Sorry for my bad english)

È stato utile?

Soluzione

It seems that your only option is the cargo plugin.

As described in the link to the duplicated question Jetty is executed in the same JVM as Maven.

So if JVM options are not possible you have to use the cargo plugin.

Altri suggerimenti

The maven-jetty-plugin has recently added support for running jetty in a separate JVM, ala cargo, so you might be in luck: http://jira.codehaus.org/browse/JETTY-991. Otherwise you can use cargo (that is what I do).

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top