TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

Automation

Code Coverage Tools

Overview

Let’s look at some of the code coverage tools and the official URLs used for test coverage analysis of the java source code.

  • Cobertura
  • Emma
  • JaCoCo

Cobertura

Cobertura is a free Java-based code coverage reporting tool that calculates the test coverage of the source code by the tests. The tool is based on jcoverage.

Official URL: https://cobertura.github.io/cobertura/

We can use the tool in Maven project by adding the Maven dependency to the pom.xml

<dependency>
<groupId>net.sourceforge.cobertura</groupId>
<artifactId>cobertura</artifactId>
<version>2.1.1</version>
<scope>test</scope>
</dependency>

EMMA

EclEmma is a free Java code coverage tool for Eclipse IDE. We can use the tool directly from the Eclipse tool.

https://www.eclemma.org/

Download Eclipse IDE. ( https://www.testingdocs.com/downloading-and-extracting-eclipse-ide/)

We can download and install the Emma tool using the Eclipse Market place.

Emma Tool

More information about Eclipse Marketplace:

https://www.testingdocs.com/eclipse-marketplace/

JaCoCo

JaCoCo is a code coverage library for Java, which has been created by the EclEmma team.

https://www.jacoco.org/jacoco/trunk/index.html

Code Coverage with Eclipse

https://www.testingdocs.com/questions/how-to-perform-code-coverage-with-eclipse/

Code Coverage Metrics

https://www.testingdocs.com/code-coverage-metrics/

Related Posts

Selenium 4 Automation Project

Automation /

Selenium 4 Project Setup on Ubuntu Linux

Testing webpage mobile-friendliness using a tool

Automation /

Testing webpage mobile-friendliness using a tool

Errors Code Testing Development

Automation /

Error Severity Metrics

Automation Environment Setup Verification

Automation /

Automation Environment Setup Verification

Install Extensions for Visual Studio Code

Automation /

Install Extensions for Visual Studio Code

‹ Selenium 4 Project Setup on Ubuntu Linux

Recent Posts

  • MS Access Data Types
  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • Build & Run CLion Project
  • Create New CLion C Project on Windows
  • Configure CLion Toolchains on Windows
  • Launch CLion IDE on Windows
  • Activate CLion IDE
  • CLion IDE for C/C++ Development

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com

Go to mobile version