codeclimate / test-reporter

Code Climate Test Reporter
MIT License
156 stars 76 forks source link

Coverage reported but not showing #412

Closed kpapadatos closed 5 years ago

kpapadatos commented 5 years ago

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 commented 5 years ago

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

kpapadatos commented 5 years ago

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 commented 4 years ago

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