# Ruby coverage simplecov json file does not work

**URL:** <https://community.sonarsource.com/t/ruby-coverage-simplecov-json-file-does-not-work/20909>\
**Category:** SonarQube Server / Community Build\
**Tags:** scanner\
**Created:** [March 2, 2020, 11:31am UTC](https://community.sonarsource.com/t/ruby-coverage-simplecov-json-file-does-not-work/20909 "2020-03-02T11:31:48Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Quentin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/quentin/32/74716_2.png) [@Quentin](https://community.sonarsource.com/u/Quentin)\
**Post date:** [March 2, 2020, 12:15pm UTC](https://community.sonarsource.com/t/ruby-coverage-simplecov-json-file-does-not-work/20909/3 "2020-03-02T12:15:22Z")

</div>

Hello,

You might want to have a look there

> [@ClassCastException while parsing SimpleCov JSON](https://community.sonarsource.com/t/classcastexception-while-parsing-simplecov-json/6117):
>
> I want to let Sonarqube to show coverage produced by SimpleCov (Ruby). So I installed SimpleCov and SimpleCov-JSON formatter for this, updated config like described by [doc](https://docs.sonarqube.org/display/PLUG/Ruby+Coverage+Results+Import). JSON-Report will be produced (see JSON section). But I get an exception (see below). What is wrong with JSON or my configuration? Exception |24-Jan-2019 09:06:55 |INFO: Sensor SimpleCov Sensor for Ruby coverage [ruby]| |---|---| |24-Jan-2019 09:06:55 |ERROR: Cannot read coverage report file, expecting standard SimpleCov resu…

If it does not solve your problem, providing us the _coverage/.resultset.json_ file as @Colin suggested would help a lot.

Best,  
Quentin

---

_[View the full topic](https://community.sonarsource.com/t/ruby-coverage-simplecov-json-file-does-not-work/20909)._
