Report coverage for Jetty based integration tests


(Florin Dragu) #1

I have issues getting the coverage report to pick up the integration tests that test the webapp running via JettyRun (I start and stop jetty before and after the tests). I tried setting the cobertura ser file path as a system property or via gradle.properties as a gradle jvm arg, but none of those are working. I know for maven there is a similar problem and there is a plugin that solves that problem http://code.google.com/p/cobertura-it-maven-plugin/wiki/HowToUse

Is there something similar for gradle or another way to get this to work? If tried the same thing with jacoco and I got the same result, all other tests are being picked up and adde to the coverage but the integration tests.

Thanks, Florin Dragy