Java code coverage tools
Java code coverage tools are of two types: first, tools that add statements to the Java source code and require its recompilation. Second, tools that instrument the bytecode, either before or during execution. The goal is to find out which parts of the code are tested by registering the lines of code executed when running a test.
Java code coverage tools are of two types: first, tools that add statements to the Java source code and require its recompilation. Second, tools that instrument the bytecode, either before or during execution. The goal is to find out which parts of the code are tested by registering the lines of code executed when running a test. And a Maven configuration example would be: -Dincluded.packages=your.package.name.here -Dincluded.adapters=coverage,complexity,dependency -javaagent:serenity/serenity.jar -Xms512m -Xmx1024m ${included.packages} ${included.adapters} For a full example of a configuration please refer to the Jenkins wiki at https://wiki.jenkins-ci.org/display/JENKINS/Serenity+Plugin. Jenkins slaves as well as Maven multi module projects are supported.
References
No reference rows published for this article.
Cite this article
MLA
"Java code coverage tools." encyclopegia.org, 2026, https://encyclopegia.org/wiki/java-code-coverage-tools. Accessed 23 November 2026.
Chicago
"Java code coverage tools." encyclopegia.org. Accessed November 23, 2026. https://encyclopegia.org/wiki/java-code-coverage-tools.
APA
encyclopegia.org. (2026). Java code coverage tools. Retrieved November 23, 2026, from https://encyclopegia.org/wiki/java-code-coverage-tools
Accessed November 23, 2026 · CC BY-SA 4.0 · citation page · JSON