<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Java_code_coverage_tools</id>
	<title>Java code coverage tools - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Java_code_coverage_tools"/>
	<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Java_code_coverage_tools&amp;action=history"/>
	<updated>2026-04-14T12:11:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>http://70.231.62.181/index.php?title=Java_code_coverage_tools&amp;diff=12994684&amp;oldid=prev</id>
		<title>imported&gt;Bender the Bot: /* EMMA */ HTTP to HTTPS for SourceForge</title>
		<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Java_code_coverage_tools&amp;diff=12994684&amp;oldid=prev"/>
		<updated>2025-08-09T21:06:12Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;EMMA: &lt;/span&gt; HTTP to HTTPS for &lt;a href=&quot;/index.php/SourceForge&quot; title=&quot;SourceForge&quot;&gt;SourceForge&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Java development tools}}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Java code coverage tools&amp;#039;&amp;#039;&amp;#039; are of two types: first, tools that add statements to the [[Java (programming language)|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 coverage|code executed]] when running a test.&lt;br /&gt;
&lt;br /&gt;
== JaCoCo ==&lt;br /&gt;
{{Infobox software&lt;br /&gt;
| name = JaCoCo&lt;br /&gt;
| developer = Marc Hoffmann, Brock Janiczak, Evgeny Mandrikov, Mirko Friedenhagen&lt;br /&gt;
| latest release version = 0.8.12&lt;br /&gt;
| latest release date = {{Release date and age|2024|03|31}}&lt;br /&gt;
| genre = [[Code coverage]]&lt;br /&gt;
| license = [[Eclipse Public License|EPL]]&lt;br /&gt;
| website = {{URL|https://www.jacoco.org/jacoco}}&lt;br /&gt;
}}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;JaCoCo&amp;#039;&amp;#039;&amp;#039; is an [[open-source software|open-source]] toolkit for measuring and reporting [[Java (programming language)|Java]] [[code coverage]]. JaCoCo is distributed under the terms of the [[Eclipse Public License]]. It was developed as a replacement for EMMA,&amp;lt;ref name=&amp;quot;jacocomission&amp;quot;&amp;gt;[http://www.eclemma.org/jacoco/trunk/doc/mission.html JaCoCo Mission]&amp;lt;/ref&amp;gt; under the umbrella of the EclEmma plug-in for Eclipse.&lt;br /&gt;
&lt;br /&gt;
=== Features ===&lt;br /&gt;
JaCoCo offers instructions, line and branch coverage.&lt;br /&gt;
&lt;br /&gt;
In contrast to [[#Clover|Atlassian Clover]] and [[#OpenClover|OpenClover]], which require instrumenting the source code, JaCoCo can instrument [[Java bytecode]] using two different approaches:&lt;br /&gt;
* like [[#JCov|JCov]] on the fly while running the code with a Java agent&amp;lt;ref&amp;gt;{{cite web |url=http://onlysoftware.wordpress.com/2012/12/19/code-coverage-tools-jacoco-cobertura-emma-comparison-in-sonar/ |title=Code Coverage Tools (JaCoCo, Cobertura, Emma) Comparison in Sonar|author=Patroklos Papapetrou|date=19 December 2012 |work=Only Software matters |publisher= |accessdate=3 March 2013}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
* like [[#Cobertura|Cobertura]] and [[#JCov|JCov]] prior to execution (offline)&lt;br /&gt;
&lt;br /&gt;
And can be configured to store the collected data in a file, or send it via TCP. Files from multiple runs or code parts can be merged easily.&amp;lt;ref&amp;gt;{{Cite web |url=http://www.sonarsource.org/measure-coverage-by-integration-tests-with-sonar-updated/ |title=Measure Coverage by Integration Tests with Sonar – Updated |access-date=2013-03-01 |archive-date=2013-02-23 |archive-url=https://web.archive.org/web/20130223183723/http://www.sonarsource.org/measure-coverage-by-integration-tests-with-sonar-updated/ |url-status=dead }}&amp;lt;/ref&amp;gt; Unlike Cobertura and [[#EMMA|EMMA]] it fully supports Java 7, Java 8,&amp;lt;ref name=&amp;quot;idea&amp;quot;&amp;gt;{{cite web|url=http://www.jetbrains.com/idea/webhelp/code-coverage-2.html |archive-url=https://archive.today/20130426184708/http://www.jetbrains.com/idea/webhelp/code-coverage-2.html |url-status=dead |archive-date=26 April 2013 |title=Code Coverage |author= |date= |work=IntelliJ IDEA 12.0 Web Help |publisher=JetBrains |accessdate=3 March 2013 }}&amp;lt;/ref&amp;gt; Java 9, Java 10, Java 11, Java 12, Java 13, Java 14, Java 15, Java 16, Java 17, Java 18, Java 19 and Java 20.&lt;br /&gt;
&lt;br /&gt;
=== Tools using or including JaCoCo ===&lt;br /&gt;
* SonarQube JaCoCo plugin &amp;amp;mdash; one of the defaults for coverage analyses within the code quality management platform [[SonarQube]]&lt;br /&gt;
* EclEmma [[Eclipse (software)]] Code Coverage Plugin, was formerly EMMA based&amp;lt;ref&amp;gt;[http://www.eclemma.org/ EclEmma, Eclipse code coverage plugin]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* [[Jenkins (software)|Jenkins]] JaCoCo Plugin&amp;lt;ref&amp;gt;[https://wiki.jenkins-ci.org/display/JENKINS/JaCoCo+Plugin Jenkins JaCoCo Plugin]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* [[Netbeans]] JaCoCo support&amp;lt;ref&amp;gt;{{Cite web |url=http://wiki.netbeans.org/MavenCodeCoverage#Using_JaCoCo |title=NetBeans JaCoCo support |access-date=2013-02-22 |archive-date=2012-05-31 |archive-url=https://web.archive.org/web/20120531150325/http://wiki.netbeans.org/MavenCodeCoverage#Using_JaCoCo |url-status=dead }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
* [[IntelliJ IDEA]] since v11&amp;lt;ref name=idea/&amp;gt;&lt;br /&gt;
* [[Gradle]] JaCoCo Plugin&amp;lt;ref&amp;gt;[http://www.gradle.org/docs/current/userguide/jacoco_plugin.html Gradle JaCoCo Plugin]&amp;lt;/ref&amp;gt;{{sfn|Gulati|Sharma|2017|loc=Chapter §6 Integrating Tools - Build Tools - Gradle|pp=99-103}}&lt;br /&gt;
* [[Apache Maven|Maven]] JaCoCo Plugin&amp;lt;ref&amp;gt;[https://www.jacoco.org/jacoco/trunk/doc/maven.html Maven JaCoCo Plugin]&amp;lt;/ref&amp;gt;{{sfn|Gulati|Sharma|2017|loc=Chapter §6 Integrating Tools - Build Tools - Maven Extension|p=115}}&lt;br /&gt;
* [[Visual Studio Team Services]]&amp;lt;ref&amp;gt;[https://blogs.msdn.microsoft.com/devops/2015/11/24/testing-java-applications-with-visual-studio-team-services/ JaCoCo integration in Visual Studio Team Services]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* [[TeamCity]]&amp;lt;ref&amp;gt;[https://confluence.jetbrains.com/display/TCD10/JaCoCo JaCoCo integration in TeamCity]&amp;lt;/ref&amp;gt;&lt;br /&gt;
* STAMP (https://www.stamp-project.eu/{{Dead link|date=April 2023 |bot=InternetArchiveBot |fix-attempted=yes }})&amp;lt;ref&amp;gt;[https://github.com/STAMP-project/dspot#test-selectors--s----test-criterion Jacoco is used by STAMP DSpot tool as a test selector (seen as a fitness) to select tests that increase the coverage and have unique executed path]&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== JCov ==&lt;br /&gt;
{{Infobox software&lt;br /&gt;
| name = JCov&lt;br /&gt;
| developer = Leonid Arbouzov, Alexander Petrov, Vladimir Generalov, Serguei Chukhontsev, Oleg Uliankin, Gregory Steuck, Pavel Ozhdikhin, Konstantin Bobrovsky, Robert Field, Alexander Kuzmin, Leonid Mesnik, Sergey Borodin, Andrey Titov, Dmitry Fazunenko, Alexey Fedorchenko, Leonid Kuskov&lt;br /&gt;
| latest release version = 3.0&lt;br /&gt;
| latest release date = {{Release date and age|2014|09|01}}&lt;br /&gt;
| genre = [[Code coverage]]&lt;br /&gt;
| license = [[GPL v2]] (with the Classpath Exception)&lt;br /&gt;
| website = {{URL|wiki.openjdk.java.net/display/CodeTools/jcov}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
JCov is the tool which has been developed and used with Sun JDK (and later Oracle JDK) from the very beginning of Java: from the version 1.1. JCov is capable of measuring and reporting [[Java (programming language)|Java]] [[code coverage]]. JCov is distributed under the terms of the [[GNU General Public License]] (version 2, with the Classpath Exception). JCov has become open-source as a part of  [[OpenJDK]] code tools project in 2014.&lt;br /&gt;
&lt;br /&gt;
=== Features ===&lt;br /&gt;
JCov is capable of reporting the following types of code coverage:&lt;br /&gt;
* Block coverage&lt;br /&gt;
* Line coverage&lt;br /&gt;
* Branch coverage&lt;br /&gt;
* Method coverage&lt;br /&gt;
JCov implements two different ways to save the collected data:&lt;br /&gt;
* Into a file on the filesystem&lt;br /&gt;
* Onto a server (a.k.a. &amp;quot;network grabber&amp;quot;)&lt;br /&gt;
JCov works by instrumenting Java bytecode using two different approaches:&lt;br /&gt;
* Static instrumentation which is done upfront, changing the tested code&lt;br /&gt;
* Dynamic instrumentation which is done on the fly by means of Java agent&lt;br /&gt;
JCov has a few more distinctive features which include, but are not limited to:&lt;br /&gt;
* Field coverage&lt;br /&gt;
* Abstract API coverage&lt;br /&gt;
* Direct/indirect coverage&lt;br /&gt;
* Per-test coverage information (a.k.a. &amp;quot;test scales&amp;quot;)&lt;br /&gt;
* Public API and SPI which makes it possible to implement custom filtering and/or mining the coverage data&lt;br /&gt;
&lt;br /&gt;
=== Tools using JCov ===&lt;br /&gt;
* Oracle JDK (SE and ME)&lt;br /&gt;
* JCK (the Java Compatibility Kit)&lt;br /&gt;
* Various Java SE and Java ME TCKs&lt;br /&gt;
* Java FX SDK&lt;br /&gt;
* Java FX Scene Builder&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
== OpenClover ==&lt;br /&gt;
{{Infobox software&lt;br /&gt;
| name = OpenClover&lt;br /&gt;
| developer = Marek Parfianowicz, Grzegorz Lewandowski&lt;br /&gt;
| latest_release_version = 4.5.2&lt;br /&gt;
| latest_release_date = {{Release date and age|2024|01|31}}&lt;br /&gt;
| genre = [[Code coverage]]&lt;br /&gt;
| license = [[Apache License 2.0]]&lt;br /&gt;
| website = {{URL|openclover.org}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
OpenClover is a free and open-source successor of Atlassian Clover, created as a [[Fork (software development)|fork]] from the Clover code base published by Atlassian in 2017. It contains all features of the original Clover (the server edition). The OpenClover project is led by developers who maintained Clover in years 2012–2017.&amp;lt;ref&amp;gt;[http://openclover.org/about-us OpenClover - About us]&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OpenClover uses source code instrumentation technique and handles Java, [[Apache Groovy|Groovy]] and [[AspectJ]] languages. Some of its features include: fine control over scope of coverage measurement, test optimisation and sophisticated reports.&lt;br /&gt;
&lt;br /&gt;
OpenClover integrates with [[Apache Ant|Ant]], [[Apache Maven|Maven]], [[Gradle]], [[Grails (framework)|Grails]], [[Eclipse (software)|Eclipse]], [[IntelliJ IDEA]], [[Bamboo (software)|Bamboo]], [[Jenkins (software)|Jenkins]], [[Hudson (software)|Hudson]], [[Griffon (framework)|Griffon]], [[SonarQube]] and AspectJ.&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
== IntelliJ IDEA Code Coverage Agent ==&lt;br /&gt;
{{Infobox software&lt;br /&gt;
| name = IntelliJ IDEA Code Coverage Agent&lt;br /&gt;
| developer = JetBrains&lt;br /&gt;
| latest_release_version = &lt;br /&gt;
| latest_release_date = &lt;br /&gt;
| genre = [[Code coverage]]&lt;br /&gt;
| license = [[Apache 2.0]]&lt;br /&gt;
| website = {{URL|https://github.com/JetBrains/intellij-coverage}}&lt;br /&gt;
}}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;IntelliJ IDEA Code Coverage Agent&amp;#039;&amp;#039;&amp;#039; is a [[code coverage]] tool integrated in IntelliJ IDEA IDE and TeamCity CI server. It supports branch coverage and per-test coverage tracking.&lt;br /&gt;
&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
== Testwell CTC++ for Java ==&lt;br /&gt;
{{Infobox software&lt;br /&gt;
| name = Testwell CTC++&lt;br /&gt;
| developer = Verifysoft Technology&lt;br /&gt;
| latest_release_version = 8.0.&lt;br /&gt;
| latest_release_date = {{Release date and age|2016|06|30}}&lt;br /&gt;
| genre = [[Code coverage]]&lt;br /&gt;
| license = [[Proprietary software|Proprietary]]&lt;br /&gt;
| website = {{URL|verifysoft.com/en_ctcpp.html}}&lt;br /&gt;
}}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Testwell CTC++&amp;#039;&amp;#039;&amp;#039; is a [[code coverage]] tool for [[C (programming language)|C]], [[C++]], [[Java (programming language)|Java]] and [[C Sharp (programming language)|C#]]. The development of this tool started in 1989 at Testwell in Finland. Since 2013 support and development has been continued by Verifysoft Technology, a company from [[Offenburg]], [[Germany]]. Testwell CTC++ analyses for all code coverage levels up to [[Modified condition/decision coverage]] and Multicondition Coverage.&amp;lt;ref name=&amp;quot;Testwell CTC++ analyses for all coverage levels&amp;quot;&amp;gt;[http://www.verifysoft.com/en_ctcpp_all_code_coverage_levels.html Testwell CTC++ supports all coverage levels]&amp;lt;/ref&amp;gt;  The tool works with all [[compilers]].&amp;lt;ref name=&amp;quot;Testwell CTC++ supports all compilers&amp;quot;&amp;gt;[http://www.verifysoft.com/en_code_coverage_all_compilers.html Testwell CTC++ supports all compilers]&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notable historic tools ==&lt;br /&gt;
&lt;br /&gt;
=== Clover ===&lt;br /&gt;
{{Redirect|Clover (software)|the dating app|Clover (mobile app)}}&lt;br /&gt;
{{Infobox software&lt;br /&gt;
| name = Clover&lt;br /&gt;
| logo = Clover_software_Logo.svg&lt;br /&gt;
| developer = [[Atlassian]]&lt;br /&gt;
| latest release version = 4.1.2&lt;br /&gt;
| latest release date = {{Release date and age|2016|10|11}}&lt;br /&gt;
| genre = [[Code coverage]]&lt;br /&gt;
| license = [[Apache 2.0]]&lt;br /&gt;
| website = {{URL|atlassian.com}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Clover&amp;#039;&amp;#039;&amp;#039; is a Java [[code coverage]] analysis utility bought and further developed by [[Atlassian]]. In April 2017 Atlassian announced end-of-life of Clover and at the same time open-sourced it under Apache 2.0 license.&lt;br /&gt;
&lt;br /&gt;
Clover uses a source code instrumentation technique (as opposed to Cobertura and JaCoCo, which use byte code instrumentation), which has its advantages (such as an ability to collect code metrics) and disadvantages (re-compilation of sources is necessary).&amp;lt;ref&amp;gt;[https://confluence.atlassian.com/pages/viewpage.action?pageId=79986998 &amp;quot;Why does Clover use source code instrumentation?&amp;quot;]&amp;lt;/ref&amp;gt; Some of its features include historical reporting, huge control over the coverage gathering process, command line toolset and API for legacy integration and more.&lt;br /&gt;
&lt;br /&gt;
Clover also allows testing time to be reduced by only running the tests that cover the application code that was modified since the previous build. This is called Test Optimization&amp;lt;ref&amp;gt;[https://www.atlassian.com/blog/archives/stop_testing_so_much Test Optimization]&amp;lt;/ref&amp;gt; and can lead to huge drops in the amount of time spent waiting for automated tests to complete.&lt;br /&gt;
&lt;br /&gt;
Clover comes with a number of integrations both developed by Atlassian (Ant, Maven, Grails, Eclipse, IDEA, Bamboo) and by open source community (Gradle, Griffon, Jenkins, Hudson, Sonar).&lt;br /&gt;
&lt;br /&gt;
In April 2017, Atlassian announced that they would no longer release new versions of Clover after version 4.1.2, and its code was made available as [[open-source software]] hosted on [[Bitbucket]].&amp;lt;ref&amp;gt;{{cite web|url=https://www.atlassian.com/blog/announcements/atlassian-clover-open-source|title=Atlassian Clover is now open source|website=atlassian.com|date=11 April 2017}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{cite web|url=https://bitbucket.org/atlassian/clover|title=atlassian/clover|website=bitbucket.org}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Cobertura ==&lt;br /&gt;
{{Infobox software&lt;br /&gt;
| name = Cobertura&lt;br /&gt;
| developer = Steven Christou&lt;br /&gt;
| latest release version = 2.1.1&lt;br /&gt;
| latest release date = {{Release date and age|2015|02|26}}&lt;br /&gt;
| genre = [[Code coverage]]&lt;br /&gt;
| license = GPL 2.0&lt;br /&gt;
| repo = {{URL|https://github.com/cobertura/cobertura}}&lt;br /&gt;
| website = {{URL|https://cobertura.github.io/cobertura/}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Cobertura is an [[open-source software|open-source]] tool for measuring code coverage. It does so by instrumenting the byte code.  It was the predecessor to JaCoCo.&lt;br /&gt;
&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
=== EMMA ===&lt;br /&gt;
{{Infobox software&lt;br /&gt;
| name = EMMA&lt;br /&gt;
| developer = Vlad Roubtsov&lt;br /&gt;
| latest release version = 2.1&lt;br /&gt;
| latest release date = {{Release date and age|2005|05|13}}&lt;br /&gt;
| genre = [[Code coverage]]&lt;br /&gt;
| license = Common Public License 1.0&lt;br /&gt;
| repo = {{URL|https://sourceforge.net/projects/emma/}}&lt;br /&gt;
| website = {{URL|emma.sourceforge.net}}&lt;br /&gt;
}}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;EMMA&amp;#039;&amp;#039;&amp;#039; is an [[open-source software|open-source]] toolkit for measuring and reporting [[Java (programming language)|Java]] [[code coverage]]. EMMA is distributed under the terms of [[Common Public License]] v1.0.&lt;br /&gt;
&lt;br /&gt;
EMMA is not currently under active development; the last stable release took place in mid-2005. As replacement, JaCoCo was developed.&amp;lt;ref&amp;gt;[https://sourceforge.net/projects/emma/files/ EMMA code coverage files on SourceForge.net]&amp;lt;/ref&amp;gt;&lt;br /&gt;
EMMA works by wrapping each line of code and each condition with a flag, which is set when that line is executed.&amp;lt;ref&amp;gt;[https://books.google.com/books?id=L7d0LNpSrRwC&amp;amp;dq=EMMA+%28code+coverage+tool%29&amp;amp;pg=PA289 Expert Spring MVC and Web Flow; By Seth Ladd, Darren Davison, Steven Devijver, Colin Yates, p. 289]&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Features ====&lt;br /&gt;
* instrument classes for coverage either offline (before they are loaded) or on the fly (using an instrumenting application classloader).&lt;br /&gt;
* Supported coverage types: class, method, line, basic block. EMMA can detect when a single source code line is covered only partially.&lt;br /&gt;
* Coverage stats are aggregated at method, class, package, and &amp;quot;all classes&amp;quot; levels.&lt;br /&gt;
* Output report types: plain text, HTML, XML. All report types support drill-down, to a user-controlled detail depth. The HTML report supports source code linking.&lt;br /&gt;
* Output reports can highlight items with coverage levels below user-provided thresholds.&lt;br /&gt;
* Coverage data obtained in different instrumentation or test runs can be merged.&lt;br /&gt;
* it is possible to dump or reset coverage data remotely and without a JVM exit.&lt;br /&gt;
* does not require access to the source code and degrades gracefully with decreasing amount of debug information available in the input classes.&lt;br /&gt;
* can instrument individual &amp;lt;code&amp;gt;.class&amp;lt;/code&amp;gt; files or entire &amp;lt;code&amp;gt;.jars&amp;lt;/code&amp;gt; (in place, if desired). Efficient coverage subset filtering is possible, too.&lt;br /&gt;
* Makefile and ANT build integration are supported on equal footing.&lt;br /&gt;
* The runtime overhead of added instrumentation is small (5–20%) and the bytecode instrumentor itself is very fast (mostly limited by file I/O speed). Memory overhead is a few hundred bytes per Java class.&lt;br /&gt;
* EMMA is 100% pure Java, has no external library dependencies, and works in any Java 2 JVM (even 1.2.x).&lt;br /&gt;
&lt;br /&gt;
== Serenity ==&lt;br /&gt;
{{Infobox software&lt;br /&gt;
| name = Serenity&lt;br /&gt;
| developer = Michael Couck&lt;br /&gt;
| latest release version = 1.0&lt;br /&gt;
| latest release date = {{Release date and age|2013|12|08}}&lt;br /&gt;
| genre = [[Code coverage]]&lt;br /&gt;
| license = [[Apache Software License]] version 2.0&lt;br /&gt;
| website = {{URL|https://wiki.jenkins-ci.org/display/JENKINS/Serenity+Plugin}}&lt;br /&gt;
}}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Serenity&amp;#039;&amp;#039;&amp;#039; is an [[open-source software|open-source]] tool creating better-automated software acceptance tests in less time. It and measures and reports [[Java (programming language)|Java]] [[code coverage]]. It also generates easy-to-understand reports that describe what the application does and how it works, including which tests were run and [https://serenity-bdd.info/what-is-serenity/ what requirements were met]. It works with Selenium WebDriver, Appium, and BDD tools.&lt;br /&gt;
&lt;br /&gt;
Major code metrics such as [[Cyclomatic complexity|cyclometric complexity]], stability, abstractness, and distance from main are measured. The report data is persisted to an [[object database]] and made available via Jenkins/Hudson. The interface visually replicates the Eclipse IDE interface.&lt;br /&gt;
&lt;br /&gt;
Serenity dynamically enhances the byte code, making a post-compile step unnecessary. Ant and Maven projects are supported. Configuration is done in xml, an Ant example would be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- Serenity system properties. --&amp;gt;&lt;br /&gt;
&amp;lt;sysproperty key=&amp;quot;included.packages&amp;quot; value=&amp;quot;your.package.name.here&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;sysproperty key=&amp;quot;included.adapters&amp;quot; value=&amp;quot;coverage,complexity,dependency&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;!-- Serenity JVM command line. --&amp;gt;&lt;br /&gt;
&amp;lt;jvmarg line=&amp;quot;-javaagent:serenity/serenity.jar&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And a Maven configuration example would be:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;properties&amp;gt;&lt;br /&gt;
&amp;lt;included.packages&amp;gt;-Dincluded.packages=your.package.name.here&amp;lt;/included.packages&amp;gt;&lt;br /&gt;
&amp;lt;included.adapters&amp;gt;-Dincluded.adapters=coverage,complexity,dependency&amp;lt;/included.adapters&amp;gt;&lt;br /&gt;
&amp;lt;/properties&amp;gt;&lt;br /&gt;
&amp;lt;argLine&amp;gt;-javaagent:serenity/serenity.jar -Xms512m -Xmx1024m ${included.packages} ${included.adapters}&amp;lt;/argLine&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a full example of a configuration please refer to the Jenkins wiki at https://wiki.jenkins-ci.org/display/JENKINS/Serenity+Plugin.&lt;br /&gt;
&lt;br /&gt;
Jenkins slaves as well as Maven multi module projects are supported.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
{{Reflist}}&lt;br /&gt;
&lt;br /&gt;
== Citations ==&lt;br /&gt;
* {{cite book | last=Gulati | first=Shekhar | last2=Sharma | first2=Rahul | title=Java Unit Testing with JUnit 5 | publisher=[[Apress]] | publication-place=Berkeley, CA | year=2017 | isbn=978-1-4842-3014-5 | doi=10.1007/978-1-4842-3015-2}}&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
* [http://openclover.org/doc/manual/4.2.0/general--comparison-of-code-coverage-tools.html Comparison of OpenClover, Clover, Cobertura, JaCoCo, JCov, CodeCover and PIT]&lt;br /&gt;
* [http://kurlenda.blogspot.ch/2010/12/test-coverage-jacoco-vs-clover2.html JaCoCo vs Clover2]&lt;br /&gt;
* [http://www.sonarsource.org/pick-your-code-coverage-tool-in-sonar-2-2/ Pick your code coverage tool in Sonar 2.2] {{Webarchive|url=https://web.archive.org/web/20130223183739/http://www.sonarsource.org/pick-your-code-coverage-tool-in-sonar-2-2/ |date=2013-02-23 }}, a little outdated, as JaCoCo meanwhile supports branch coverage&lt;br /&gt;
* [https://blogs.msdn.microsoft.com/visualstudioalm/2015/11/24/testing-java-applications-with-visual-studio-team-services/ Testing Java Applications with Visual Studio Team Services]&lt;br /&gt;
&lt;br /&gt;
[[Category:Software testing tools]]&lt;br /&gt;
[[Category:Java development tools|Code coverage]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Bender the Bot</name></author>
	</entry>
</feed>