---
title: "Discussion on \"Setup code coverage overview in SonarQube with JaCoCo\" | Hashnode"
description: "Discussion on \"Setup code coverage overview in SonarQube with JaCoCo\". In the previous article of this series, I've described how to setup a SonarQube to begin with the static code analysis for your project. It was enough for the start, but it was missing something. It was missing code coverage reports and stats. Of cou..."
url: "https://hashnode.com/posts/setup-code-coverage-overview-in-sonarqube-with-jacoco/5fb57edc08ea5d7167d6f038"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Setup code coverage overview in SonarQube with JaCoCo](https://brunosays.com/setup-code-coverage-overview-in-sonarqube-with-jacoco?utm_source=hashnode&utm_medium=feed)

In the previous article of this series, I've described how to setup a SonarQube to begin with the static code analysis for your project. It was enough for the start, but it was missing something. It was missing code coverage reports and stats. Of cou...

Nov 18, 2020 · 7 min read · brunosays.com  
Read the article

-   [#programming](https://hashnode.com/tag/programming)

## Written by

[Bruno Raljic](https://hashnode.com/@brunor)

@brunor

  
[View profile](https://hashnode.com/@brunor)

Software dev for ~10 years. Kicking myself out of comfort zone atm

## Responses 1

Markdown supported · ⌘↵ to post

[Alexandre da Silva](https://hashnode.com/@silalex)

[Sep 17, 2021](https://hashnode.com/posts/setup-code-coverage-overview-in-sonarqube-with-jacoco/5fb57edc08ea5d7167d6f038/comment/6144bad52d0e2479882a4c50)

Fantastic. After 2 days looking how I could generate the directory target/site/jacoco/ with the file jacoco.xml, I found with this basic and perfect tutorial. Thanks so much.

[Alexandre da Silva](https://hashnode.com/@silalex)

[Sep 17, 2021](https://hashnode.com/posts/setup-code-coverage-overview-in-sonarqube-with-jacoco/5fb57edc08ea5d7167d6f038/comment/6144bad52d0e2479882a4c50#reply-6144baf52d0e2479882a4c57)

Just do not forget to run mvn install (with test), otherwise the directory is not generated.

[Bruno Raljic](https://hashnode.com/@brunor)

[Oct 4, 2021](https://hashnode.com/posts/setup-code-coverage-overview-in-sonarqube-with-jacoco/5fb57edc08ea5d7167d6f038/comment/6144bad52d0e2479882a4c50#reply-615b478058a5294ce01ae362)

[Alexandre da Silva](https://hashnode.com/@silalex) thanks for your comments! This is the second post in my sonarqube series, in the next one, there's already some automation mentioned, so `mvn install` and similar things are included!

I'm glad you liked the tutorial style!
