---
title: "Discussion on \"How to add SonarQube to a Vue Project.\" | Hashnode"
description: "Discussion on \"How to add SonarQube to a Vue Project.\". Measuring Code Quality for a Vue project with Jest and SonarQube."
url: "https://hashnode.com/posts/how-to-add-sonarqube-to-a-vue-project/6277a6d3317fc95a74ca9bb2"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to add SonarQube to a Vue Project.](https://callbackconundrum.hashnode.dev/how-to-add-sonarqube-to-a-vue-project?utm_source=hashnode&utm_medium=feed)

Measuring Code Quality for a Vue project with Jest and SonarQube.

May 8, 2022 · 4 min read · callbackconundrum.hashnode.dev  
Read the article

-   [#vuejs](https://hashnode.com/tag/vuejs)
-   [#testing](https://hashnode.com/tag/testing)
-   [#jest](https://hashnode.com/tag/jest)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#unit-testing](https://hashnode.com/tag/unit-testing)

## Written by

[Ashim Khan](https://hashnode.com/@callbackConundrum)

@callbackConundrum · India

  
[View profile](https://hashnode.com/@callbackConundrum)

Javascript Developer and Cat Dad.

I'm a Software Developer with focus on Frontend Development these days. Love Javascript, always have!

## Responses 1

Markdown supported · ⌘↵ to post

[CODmon Inc](https://hashnode.com/@Codmon)

[May 10, 2022](https://hashnode.com/posts/how-to-add-sonarqube-to-a-vue-project/6277a6d3317fc95a74ca9bb2/comment/627a11c47f98319956cd4402)

Doesn't Jest itself have a coverage tool? Why do we need to add Sonar in the first place?

[Ashim Khan](https://hashnode.com/@callbackConundrum)

[May 10, 2022](https://hashnode.com/posts/how-to-add-sonarqube-to-a-vue-project/6277a6d3317fc95a74ca9bb2/comment/627a11c47f98319956cd4402#reply-627ac04f199297a9505d4ce2)

This setup is for the case where you want to check the sonar coverage/report locally before pushing your code to a pipeline. Instead of failing the tests on pipeline, we can check things like bugs/duplication/coverage locally and then push the code, as Jest coverage mostly comes out higher than SonarQube coverage.
