How to test sonar coverage percent on local

I’m testing sonarcloud and everytime i want to check did the coverage increase i have to push code, wait for pull request approve, and then pipeline, after that i can check, that too much step so i wonder is there a way i can check coverage percent local like jest, or just show on terminal ( coverage on jest is different than sonar because sonar use own metric that use condition test also )

And one more question is, can we config jest using sonar metric?

Thank you a lots


Sorry, but while you could see issues locally via SonarLint, you’ll need another tool to get basic coverage data. Note that what a local tool shows may not match what you see in SonarCloud because we do some extra calculations. This blog post is a bit dusty, but explains the basics.