Follow the steps below to verify whether code coverage data has been successfully uploaded for a specific repository via the CodeScene Swagger UI:
1. Open Swagger
- Cloud: https://api.codescene.io/v2/docs
- On-prem: http://codescene-host-url/api/v2/docs/index.html
2. Authorize
Click the Authorize button at the top right of the Swagger page.
- Cloud: Use a personal access token.
-
On-prem: Enter your username and password.
Click Authorize again in the pop-up, then Close.
3. Locate the Code Coverage Endpoints
-
Scroll down through the list of available endpoints until you find the section labeled
code-coverage
. -
Look for the endpoint named:
GET /code-coverage
Returns metadata for uploaded code coverage data.
4. Try It Out
-
Click on the endpoint to expand it.
-
Click the "Try it out" button.
-
In the input field, enter the repository URL you want to check (e.g.,
https://github.com/your-org/your-repo.git
). -
Click Execute.
5. Check the Response
-
If code coverage data has been uploaded for the repository, it will be displayed in the Response body.
-
If no code coverage data has been uploaded, the response body will be empty.