scoutapp / scout_apm_ruby

ScoutAPM Ruby Agent. Supports Rails, Sinatra, Grape, Rack, and many other frameworks

Home Page:https://scoutapm.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scout apm gem is showing test coverage 0% using simplecov and rails 6.

ArvindTiwariSD opened this issue · comments

I am facing issue with scout apm gem. My test coverage is showing 0%, when checking test coverage for my application. I am using rails 6 along with ruby 2.7.1.

Simplecov version - simplecov-0.18.5
rails version - 6.0.3
ruby - 2.7.1

Test coverage is showing correct percentage of test, If I remove scout apm gem. I have gone through some links and it specify:

Coverage does NOT work when used alongside Scout APM Auto Instrumentation
In an environment that uses Scout's AUTO_INSTRUMENT=true (usually production or staging) it stops reporting any coverage, it will show one or two files that have been loaded at the start but everything else will show up as having 0% coverage
Bug tracked here: #343.