I need help sending Android code coverage using github Action to Codecov

272 Views Asked by At

I am trying to send my Unit test code coverage to Codecov using Github action but it is not working and showing me the below response. this is the response I have been getting since Github action response

Response i get in Codecov platform

1

There are 1 best solutions below

3
On

Tom from Codecov here, it looks like you got this working, but it seems like the file you are specifying isn't in that location. It could either not be correct based on your working directory, or you could be mistaken with where it's located. There are two things we recommend

  1. You could have a step prior to the Codecov action that checks if the file exists (e.g. ls app/build/reports/coverage/debug/index.html)

  2. You could remove the file to see what Codecov automatically picks up. Note that I don't think we accept html as a valid coverage report.