title: Setting up properly SonarQube for Code Coverage
body: <p>I'm using JUnit5 on a SpringBoot backend application server using Maven. Here is the <code>sonar-project.properties</code> file that is at the root of the project:</p>
  
  <pre><code>sonar.host.url=https://sonarcloud.io
  sonar.login=xxx
  sonar.organization=xxx
  sonar.projectKey=xxx
  
  sonar.sourceEncoding=UTF-8
  sonar.language=java
  sonar.java.source=12
  
  sonar.sources=src/main/java
  sonar.test=src/test
  sonar.java.binaries=target/classes
  sonar.junit.reportPaths=target/test-results/TEST-**.xml
  </code></pre>
  
  <p>I use the <code>sonar-scanner</code> command line to run update the project after a build/test.</p>
  
  <p>The <code>Overview</code> board on sonar-cloud looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/eDOSk.png" rel="noreferrer"><img src="https://i.stack.imgur.com/eDOSk.png" alt="overview"></a></p>
  
  <p>I at least got the unit tests to be recognized, but somehow I'm still at 0% in terms of code coverage. Furthermore, here is the <code>Measures</code> board:</p>
  
  <p><a href="https://i.stack.imgur.com/KChVP.png" rel="noreferrer"><img src="https://i.stack.imgur.com/KChVP.png" alt="measures"></a></p>
  
  <p>Apparently, my tests do not cover any lines whatsoever. Now, I'm aware that this means that I most probably didn't hook up the test-results properly, but I'm not sure how to do that.</p>
  
  <p>What puzzles me, too, is that despite SonarQube recognizing my tests, it actually says that the lines-of-code of the tests themselves aren't tested. What is this supposed to mean?</p>
  
  <p><a href="https://i.stack.imgur.com/BO1Ns.png" rel="noreferrer"><img src="https://i.stack.imgur.com/BO1Ns.png" alt="Testing tests?"></a></p>