Posts

Showing posts from February, 2023

SonarQube Installation locally on Windows

Download the SonarQube community edition from https://www.sonarsource.com/products/sonarqube/downloads/ update the path in  sonarqube-8.9.10.61524\conf\wrapper.conf edit below path wrapper.java.command= C:\Program Files\Java\jdk-11\bin\java Goto the below path \sonarqube-8.9.10.61524\bin\windows-x86-64\ and run startsonar.bat there are four steps: 1 create a project and generate the user token and generate login token and copy it 2 donwload the sonarscanner and set the path 3 go to the project path and run the below command sonar-scanner.bat -D"sonar.projectKey=DEMO" -D"sonar.sources=." -D"sonar.host.url=http://localhost:9000" -D"sonar.login=XXXXX" 4 go the sonarqube dashboard and refresh it the dashboard Any 3rd party tool is required for generating the code coverage and inject that along with sonarqube,  sonarqube should be feed with code coverage tool in order to see the code coverage results in sonarqube dashboard.