'analyzing the GSon project with SonarQube produces 0.0% test coverage

I'm trying to analyze the official GSon project downloaded from GitHub using SonarQube running on Docker even though all the tests are run successfully and the analysis is complete it show 0.0% test coverage in the end.

enter image description here

this is the command I'm using to start the analysis:

mvn clean verify sonar:sonar -Dsonar.projectKey=gson_resurrection -Dsonar.host.url=http://localhost:9000 -Dsonar.login=840db6fded6390e6dbf1a09b757e01be386c6781

and this is the final output: enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source