codacy / codacy-coverage-reporter-action

GitHub Action for the codacy-coverage-reporter
Other
58 stars 15 forks source link

Jest coverage report is not uploaded #19

Closed pashidlos closed 4 years ago

pashidlos commented 4 years ago

I'm add trying to add coverage report but don't see it's uploaded: Hey! Seems like we stopped receiving your coverage results. Check your CI server!

link to dashboard: https://app.codacy.com/gh/Visual-Regression-Tracker/backend/dashboard

here is the link to PR: https://github.com/Visual-Regression-Tracker/backend/pull/30

version: codacy/codacy-coverage-reporter-action@0.2.0

the same config works for Codecov so coverage files are generated: https://codecov.io/gh/Visual-Regression-Tracker/backend

what am I doing wrong?

josemiguelmelo commented 4 years ago

Hi @pashidlos,

First of all, thank you for integrating with Codacy 🙂

The coverage seems to be successfully sent to our platform for the PR branch.

The message you're seeing shows up because you’re looking at the master branch dashboard and the coverage was sent to another branch. As master branch still doesn’t have coverage, we show that info message because we found coverage for the project but we didn’t find any coverage for the branch you’re looking at on the dashboard.

In order to check if the coverage was sent correctly to the PR branch, you can enable that branch and check the dashboard for that branch. To enable the branch on your Codacy project, go to Settings > Branches > Enable branch for the PR. When the branch setup finishes, you can switch to the new branch on the dashboard and see the coverage information.

pashidlos commented 4 years ago

everything worked as you said thanks for helping out and being free for opensource!