Member-only story
Code Analysis + Coverage Test Node.js using SonarQube — Learning SonarQube
2 min readAug 14, 2023
INTRODUCTION
In short, SonarQube is a code analysis tool that helps us analyze the results of our programs, including coverage tests. In this tutorial, we will try to integrate a Node.js application and analyze its coverage test results.
For the Node.js sample project, you can clone it here
SETUP SONARQUBE
To expedite the setup process, here we will use Docker images from SonarQube.
docker pull sonarqube:latest
docker run -p 9000:9000 sonarqube:latest
Here, our SonarQube server is running on port 9000.
Create a project name and project key. Then, click next and create the project.
Next, we will generate a token that our application will use.