Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coverage reported but not showing #412

Closed
kpapadatos opened this issue Nov 2, 2019 · 3 comments
Closed

Coverage reported but not showing #412

kpapadatos opened this issue Nov 2, 2019 · 3 comments
Assignees

Comments

@kpapadatos
Copy link

Here you can see the latest reported coverage:
image

But it is not showing in the dashboard:
image

Even though it is the correct and latest commit in the develop branch:
image

@kpapadatos
Copy link
Author

The same thing is happening in my open source repo https://codeclimate.com/github/Pobuca-Ltd/xsc

@kpapadatos
Copy link
Author

Just realized branch name was not correct. It was a little confusing since other code analysis tools get it automatically. I'll leave this here for reference: https://docs.codeclimate.com/docs/test-coverage-troubleshooting-branch-names

Using Azure Pipelines I had to do:

  - script: |
      curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
      chmod +x ./cc-test-reporter
      ./cc-test-reporter format-coverage -t lcov -o coverage/codeclimate.json coverage/lcov.info
      ./cc-test-reporter upload-coverage
    displayName: Upload coverage to Code Climate
    env:
      CC_TEST_REPORTER_ID: $(frontend-codeclimate-reporter-id)
      GIT_BRANCH: $(Build.SourceBranchName)
      GIT_COMMIT: $(Build.SourceVersion)

@damienwebdev
Copy link

damienwebdev commented Feb 13, 2020

@davehenton please surface this into the docs if you can, I lost 5 hours repeating this. See #370

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants