archived-codacy / node-codacy-coverage

Code Coverage reporter for Codacy
MIT License
63 stars 45 forks source link

No coverage displayed after sending valid lcov report #26

Closed vcernomschi closed 8 years ago

vcernomschi commented 8 years ago

No coverage displayed after sending valid lcov report screen shot 2016-05-13 at 2 22 55 pm

Prerequisities:

Steps to reproduce:

  1. Generate lcov report by using istanbul and istanbul-combine.
  2. Send it to codacy (CODACY_PROJECT_TOKEN was configured in travis CI): cat ${COVERAGE_PATH}"/lcov.info" | codacy-coverage --debug
  3. Check command result for debug ( [debug] "2016-05-13T09:00:01.658Z" 'Successfully sent coverage')
  4. Check result on Codacy Web page (https://www.codacy.com/app/MitocGroup/deep-framework/dashboard):

Expected result: coverage info is displayed. Actual result: coverage info is not displayed. After click on Setup Coverage button the following information is displayed:

 Oops! We weren't able to validate your report. Ping us on the support chat and we will help you figure it out.

lcov.info.txt

Please refer to the attached coverage file (lcov.info.txt) that is generated by instanbul.

Please refer to the full TRAVIS CI log: https://s3.amazonaws.com/archive.travis-ci.org/jobs/129941728/log.txt

rtfpessoa commented 8 years ago

Hi @vcernomschi ,

From what I can check, your project has files named like src/path1/path2/file.js but the reports are being sent for files named src/path1/compile/path2/file.js.

Edit: Notice the compile in the middle of the path.

If the coverage is sent for a different path we cannot associate it with the original file on our side.

If you cannot fix this at the coverage tool level, maybe you can sed replace the paths before sending the report to Codacy.

vcernomschi commented 8 years ago

Thanks @rtfpessoa! I will update and check one more time.

devs-deep commented 8 years ago

@rtfpessoa: It doesn't display coverage for deepify, deep-package-manager projects.

From log I see that it sent and had valid path:

[debug] "2016-05-18T10:13:12.135Z"  'Sending coverage'
[debug] "2016-05-18T10:13:12.674Z"  'Successfully sent coverage'
TN:
SF:/home/travis/build/MitocGroup/deepify/src/lib/Exception/Exception.js

log.txt

devs-deep commented 8 years ago

Hi, just wondering if there are any reasons. Because issue is still reproducible and affects 3 projects.

machadoit commented 8 years ago

Hi @devs-deep,

Can you please explain your issue in Codacy website support, and specify which projects have the issue? You will get a better support that way.

Thank you