Setup Sonarqube With Angular Project in 6 Minutes

A simple guide to setup Sonarqube for your Angular project

Rakshit Shah
BeingCoders

--

Image Prepared by Author in MS PowerPoint

If you are trying to set up Sonarqube for your Angular codebase for code coverage analysis. You have to follow up on the below steps.

Step 1: Install Sonarqube

For installing Sonarqube first download the Sonarqube from the official website

Step 2: Configure Sonarqube with your Angular Project

Run the following command

npm install sonar-scanner --save-dev

Step 3: Configure the SonarQube properties file on the Angular project

Create a file called sonar-project.properties in your Angular root directory and add the below attributes in the same file.

Now you want to run code coverage on the Angular project, so Karma will do the same work for you.

Step 4: Integrate Angular…

--

--

Rakshit Shah
BeingCoders

Computer Engineer | Foodie | Traveler| Love to learn & earn new things in daily life.