Code Monkey home page Code Monkey logo

example-jacoco's Introduction

JaCoCo Example

This example project is related to a blog article which describes the configuration to use JaCoCo in your Apache Maven project.

Requirements

  • JDK21+
  • Apache Maven 3.8+ (also Maven 4.0.0-alpha-12+ supported).

The given code example can easily being changed to work with JDK version less than 17, because you can simply replace the given record in the example with a usual final class implemented in the classical way.

JaCoCo Report

To create a full JaCoCo coverage report you could start via:

mvn clean verify

Creating a report which covers only the unit tests can be achieved by:

mvn clean verify -DskipITs

If you like to have the integration test reports only:

mvn clean verify -DskipUTs

example-jacoco's People

Contributors

dependabot[bot] avatar khmarbaise avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

example-jacoco's Issues

Generate Jacoco site report

Hello Karl,

First of all, wanted to say thank you for your comment on my StackOverflow question: https://stackoverflow.com/questions/77692513/duplicate-jacoco-maven-plugin-in-both-build-and-reporting-sections-for-site

I took into account your advice and pulled this project (this gitlab project)

Out of the box, I took it, and ran as you suggested mvn verify site

And unfortunately, looking at the generated website, there is no jacoco report (please see screenshot)

Screenshot 2023-12-28 135814

I was hoping to see this: (please see the second screenshot)

Screenshot 2023-12-28 135929

How to achieve the later, without a duplicate jacoco dupliate in the reporting block?

Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.