When we think about Ruby code coverage, our go-to gem for this is SimpleCov , which works great when the test suite uses Minitest , RSpec , Cucumber , Capybara , and all these tools that are integrated with Ruby and Rails. But many applications also use other tools like Playwright or Cypress to run e2e tests, and we can’t use SimpleCov the same way.
Most of the time, what we have seen is that the Ruby code executed when running these tools ends up left behind and not being counted for the total code coverage, even though we know the code is actually being tested.
Read more of Measuring Test Code Coverage For Non-Ruby Runners