title: Sonar cube not showing the test coverage percentage for Java project properly
body: <p>I have a spring-based java project and I have my tests placed in /src/test/java folder. I tried to run the Sonar cube locally via </p>
  
  <p>docker run -d --name sonarqube -p 9000:9000 sonarqube</p>
  
  <p>in order to analyze the percentage of the test coverage. The test coverage shows 0% even though I have many tests in my project. And the Number of Unit tests count shows as 8 though there are more than that. Here is the screenshot</p>
  
  <p><a href="https://i.stack.imgur.com/JBAxm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JBAxm.png" alt="enter image description here"></a></p>
  
  <p>And here is my general Settings
  <a href="https://i.stack.imgur.com/eM3D1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eM3D1.png" alt="enter image description here"></a></p>
  
  <p>Does anyone has any idea how to configure Sonar cube to reflect the test coverage?</p>