0

In the bitbucket server doc (https://confluence.atlassian.com/bitbucketserver/enhancements-to-your-code-review-workflow-1014275076.html), I see this note:

We've got your code covered (released 7.0)

This code coverage can be shown in the diff view gutter:

enter image description here

But it seems it doesn't have any details about how to provide code coverage data to the Bitbucket server.

I have a Bitbucket server running on-premise, when I click a file in the pull request page, a XHR request will be sent to

GET /rest/insights/latest/{projectKey}/{repositorySlug}/pull-requests/{pullRequestId}/coverage/{filePath}

enter image description here

but I can't find any REST API I can POST or PUT data for code coverage to.

1 Answer 1

-2

It does not work out-of-the box, you need to install their Code Coverage plugin too:
https://marketplace.atlassian.com/apps/1218271/code-coverage-for-bitbucket

Sign up to request clarification or add additional context in comments.

2 Comments

As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.