On Wed, Sep 16, 2015 at 8:04 AM, Ullrich Hafner
<
ullrich...@gmail.com> wrote:
> Did someone already manage it to start the Jenkins under Test with coverage monitoring (emma, cobertura, jacoco, etc.)?
I have run JaCoCo during plugin tests.
> Seems not so easy due to the Jenkins class loader.
With `JenkinsRule`? Not an issue, all classes in the test root, plus
the plugin being tested and its stated dependencies, and core and its
modules and libraries, are in the Surefire classpath and so available
for processing by JaCoCo, just like in a unit test. The only classes
that might slip past are those in unrelated bundled plugins, or
plugins loaded via `@WithPlugins`, that would be loaded via a plugin
class loader, but surely you do not care about coverage of these.