jny
jny

Reputation: 8057

Test coverage with SonarQube bitbucket plugin in pull requests

I have the following setup:

We installed SonarQube plugin on the Stash Server, and it mostly works (quality gate, etc), but code coverage does not show up in diff in pull requests. What needs to be enabled to that to work?

Upvotes: 0

Views: 3335

Answers (2)

artkoshelev
artkoshelev

Reputation: 892

You could use Code Coverage plugin to integrate coverage information into stash pull-requests. In order to use it, you need to:

  • Install plugin on your Bitbucket server
  • Publish coverage information from your branch build. You could use maven client or nodejs client depending on your tech stack.

That doesn't require SonarQube at all, since all information stored on Bitbucket itself.

Upvotes: 1

G. Ann - SonarSource Team
G. Ann - SonarSource Team

Reputation: 22804

Pull Request analysis doesn't (yet?) handle code coverage; it only looks at new issues (other than, of course, issues for things that are calculated server-side like inadequate test coverage).

Upvotes: 0

Related Questions