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

    Automation /

    Dart return Statement

    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 /

    Serverless Computing

    ‹ Selenium 4 Project Setup on Ubuntu Linux› Dart return Statement

    Recent Posts

    • ChatGPT Subscription Plans
    • Stellar Converter for Database
    • Stellar Log Analyzer for MySQL
    • Stellar Repair for MySQL
    • ChatGPT Capabilities
    • How to secure your SQL Database: Tips and Tricks
    • ChatGPT4 Conversational AI Features
    • Shaping the Future of Development: Exploring Key Trends in Software Engineering
    • Improving Java Performance with Multithreading
    • Open-source Vector Databases

    Back to Top

    Links

    • Contact
    • Privacy Policy
    • Cookie Policy

    www.TestingDocs.com