# Upload coverage report generated by simplecov by using codecov action

**URL:** <https://community.codecov.com/t/upload-coverage-report-generated-by-simplecov-by-using-codecov-action/1716>\
**Category:** Support\
**Tags:** ruby, github\
**Created:** [July 8, 2020, 12:51am UTC](https://community.codecov.com/t/upload-coverage-report-generated-by-simplecov-by-using-codecov-action/1716 "2020-07-08T00:51:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![taichi-ishitani](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/taichi-ishitani/32/920_2.png) [@taichi-ishitani](https://community.codecov.com/u/taichi-ishitani)\
**Post date:** [July 8, 2020, 12:51am UTC](https://community.codecov.com/t/upload-coverage-report-generated-by-simplecov-by-using-codecov-action/1716/1 "2020-07-08T00:51:59Z")

</div>

### Description

I tried to upload coverage report generated by simpblecov gem by using codecov action.  
It seems that uploading the report is succeeded but no reports are seen on codecov site.

[https://github.com/rggen/rggen-core/runs/846037139?check\_suite\_focus=true](https://github.com/rggen/rggen-core/runs/846037139?check_suite_focus=true)

> **[Code coverage done right.](https://app.codecov.io/github/rggen/rggen-core/commit/c47a18ad1f6392f082387e3271f6b90317421097)**
>
> Hosted coverage report highly integrated with GitHub, Bitbucket and GitLab. Awesome pull request comments to enhance your QA.

What is wrong and how can I fix it?

### Repository

> **[GitHub - rggen/rggen-core: RgGen Core Library](https://github.com/rggen/rggen-core)**
>
> RgGen Core Library

### CI/CD

GitHub Actions. Configuration YAML is here.

> <https://github.com/rggen/rggen-core/blob/c47a18ad1f6392f082387e3271f6b90317421097/.github/workflows/ci.yml#L60>

### Uploader

codecov action

### Commit SHAs

c47a18ad1f6392f082387e3271f6b90317421097

### Codecov YAML

I don’t use Codecov YAML.

### Codecov Output

```auto
2020-07-07T14:45:37.9193721Z ##[group]Run codecov/codecov-action@v1
2020-07-07T14:45:37.9193874Z with:
2020-07-07T14:45:37.9194008Z file: ./coverage/.resultset.json
2020-07-07T14:45:37.9194138Z name: Linux-2.7-frozen_string_literal-yes
2020-07-07T14:45:37.9194265Z fail_ci_if_error: true
2020-07-07T14:45:37.9194387Z env:
2020-07-07T14:45:37.9194513Z RGGEN_ROOT: /home/runner/work/rggen-core/rggen-core
2020-07-07T14:45:37.9194655Z RUBYOPT: --enable-frozen-string-literal
2020-07-07T14:45:37.9194776Z USE_FIXED_GEMS: yes
2020-07-07T14:45:37.9194909Z ##[endgroup]
2020-07-07T14:45:38.1698062Z [command]bash codecov.sh -f ./coverage/.resultset.json -n Linux-2.7-frozen_string_literal-yes -F -Z
2020-07-07T14:45:38.1781926Z 
2020-07-07T14:45:38.1782281Z _____ _
2020-07-07T14:45:38.1782675Z / ____ | | |
2020-07-07T14:45:38.1782972Z | | _____ | | ______  _______
2020-07-07T14:45:38.1783188Z | | / _ \ / _` |/ _ \/ __/ _ \ \ / /
2020-07-07T14:45:38.1783463Z | |___| (_) | (_| |__/ (_| (_) \ V /
2020-07-07T14:45:38.1783705Z \ _____\___ / \ __,_|\___ |\ ___\___ / \_/
2020-07-07T14:45:38.1784436Z Bash-20200629-ffaf297
2020-07-07T14:45:38.1784805Z 
2020-07-07T14:45:38.1785139Z 
2020-07-07T14:45:38.1791212Z e[0;90m==>e[0m GitHub Actions detected.
2020-07-07T14:45:38.1893216Z e[0;90mproject root:e[0m .
2020-07-07T14:45:38.1957135Z e[0;32mYaml not found, that's ok! Learn more ate[0m e[0;36mhttp://docs.codecov.io/docs/codecov-yamle[0m
2020-07-07T14:45:38.2289989Z e[0;90m->e[0m Found 1 reports
2020-07-07T14:45:38.2291028Z e[0;90m==>e[0m Detecting git/mercurial file structure
2020-07-07T14:45:38.2350520Z e[0;90m==>e[0m Reading reports
2020-07-07T14:45:38.2407546Z e[0;32m+e[0m ./coverage/.resultset.json e[0;90mbytes=235642e[0m
2020-07-07T14:45:38.2440288Z e[0;90m==>e[0m Appending adjustments
2020-07-07T14:45:38.2441141Z e[0;36mhttps://docs.codecov.io/docs/fixing-reportse[0m
2020-07-07T14:45:38.3110494Z e[0;32m+e[0m Found adjustments
2020-07-07T14:45:38.3128039Z e[0;90m==>e[0m Gzipping contents
2020-07-07T14:45:38.3347248Z e[0;90m==>e[0m Uploading reports
2020-07-07T14:45:38.3348181Z e[0;90murl:e[0m https://codecov.io
2020-07-07T14:45:38.3348985Z e[0;90mquery:e[0m branch=introduce_codecov_action&commit=c47a18ad1f6392f082387e3271f6b90317421097&build=160753902&build_url=http%3A%2F%2Fgithub.com%2Frggen%2Frggen-core%2Factions%2Fruns%2F160753902&name=Linux-2.7-frozen_string_literal-yes&tag=&slug=rggen%2Frggen-core&service=github-actions&flags=&pr=&job=
2020-07-07T14:45:38.3378756Z e[0;90m->e[0m Pinging Codecov
2020-07-07T14:45:38.3380271Z https://codecov.io/upload/v4?package=bash-20200629-ffaf297&token=secret&branch=introduce_codecov_action&commit=c47a18ad1f6392f082387e3271f6b90317421097&build=160753902&build_url=http%3A%2F%2Fgithub.com%2Frggen%2Frggen-core%2Factions%2Fruns%2F160753902&name=Linux-2.7-frozen_string_literal-yes&tag=&slug=rggen%2Frggen-core&service=github-actions&flags=&pr=&job=
2020-07-07T14:45:38.9671674Z e[0;90m->e[0m Uploading to
2020-07-07T14:45:38.9673011Z https://storage.googleapis.com/codecov/v4/raw/2020-07-07/BCBC1E6D7F63BDBCCF8375424D26C501/c47a18ad1f6392f082387e3271f6b90317421097/452ace45-c0f4-4720-aeae-5ef6e744b3a7.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EQX6OZVJGHKK3633AAFGLBUCOOATRACRQRQF6HMSMLYUP6EAD6XSWAAY%2F20200707%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20200707T144538Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=ccdebf6f22aa0ced1e7be3a4850cafaa06a485c722043fb00c2a590157a5e9cc
2020-07-07T14:45:38.9758027Z % Total % Received % Xferd Average Speed Time Time Time Current
2020-07-07T14:45:38.9758415Z Dload Upload Total Spent Left Speed
2020-07-07T14:45:38.9769198Z 
2020-07-07T14:45:39.1632566Z 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
2020-07-07T14:45:39.1632900Z 100 10674 0 0 100 10674 0 56776 --:--:-- --:--:-- --:--:-- 56776
2020-07-07T14:45:39.1696987Z e[0;32m->e[0m View reports at e[0;36mhttps://codecov.io/github/rggen/rggen-core/commit/c47a18ad1f6392f082387e3271f6b90317421097e[0m

```

### Additional Information

N/A

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [July 8, 2020, 2:02pm UTC](https://community.codecov.com/t/upload-coverage-report-generated-by-simplecov-by-using-codecov-action/1716/2 "2020-07-08T14:02:30Z")

</div>

Hi @taichi-ishitani, [path fixing](https://docs.codecov.io/docs/fixing-paths) might work here:

```auto
fixes:
  - "/home/runner/work/rggen-core/rggen-core/::"

```

---

<div class="post-metadata">

**Author:** ![taichi-ishitani](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/taichi-ishitani/32/920_2.png) [@taichi-ishitani](https://community.codecov.com/u/taichi-ishitani)\
**Post date:** [July 8, 2020, 2:37pm UTC](https://community.codecov.com/t/upload-coverage-report-generated-by-simplecov-by-using-codecov-action/1716/3 "2020-07-08T14:37:57Z")

</div>

Hi @tom,  
Thank you for your answer. I will try.

---

<div class="post-metadata">

**Author:** ![taichi-ishitani](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/taichi-ishitani/32/920_2.png) [@taichi-ishitani](https://community.codecov.com/u/taichi-ishitani)\
**Post date:** [July 10, 2020, 5:31am UTC](https://community.codecov.com/t/upload-coverage-report-generated-by-simplecov-by-using-codecov-action/1716/4 "2020-07-10T05:31:18Z")

</div>

The cause of this issue is that `codecov-action` does not support JSON file generated by `simplecov` gem.  
I introduced `simplecov-cobertura’ to generate XML instead of JSON and upload generated XML report.  
Then, I can see the coverage report on codoecov site.  
(‘path-fixing’ is not needed.)
