On Wed, Sep 16, 2015 at 8:04 AM, Ullrich Hafner
<[email protected]> 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.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr1u2QHMqCMLbjig312JXU-tErv-4VFUa7v7znGpV0%3DJYQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to