codeclimate / test-reporter

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

Uploaded coverage file contains Ruby and Javascript, but only Ruby coverage is showing. #445

Open jcpny1 opened 3 years ago

jcpny1 commented 3 years ago

I am uploading a merged coverage file from Ruby and JavaScript. When I look at the results on the code page, only the Ruby files have coverage data. This used to work, but somewhere along the line it stopped working.

I've attached one example of Ruby and one of JavaScript from what I believe to be the uploaded coverage file. (Is there a way to verify what file is received?)

The project is at https://codeclimate.com/github/jcpny1/portfolio-analyzer/code.

image

image

mberlanda commented 2 years ago

This example from the documentation may be useful: https://docs.codeclimate.com/docs/travis-ci-test-coverage#example-1

  - ./cc-test-reporter format-coverage -t simplecov -o coverage/codeclimate.backend.json coverage/backend/.resultset.json # Format backend coverage
  - ./cc-test-reporter format-coverage -t lcov -o coverage/codeclimate.frontend.json coverage/frontend/lcov.info  # Format frontend coverage
  - ./cc-test-reporter sum-coverage coverage/codeclimate.*.json -p 2                  # Sum both coverage parts into coverage/codeclimate.json
  - ./cc-test-reporter upload-coverage