Read more

How to enable template coverage support for simplecov

Felix Eschey
March 29, 2023Software engineer at makandra GmbH

Since Ruby 3.2.0 Show archive.org snapshot you can measure coverage support for eval statements and support has been added for the simplecov gem as well Show archive.org snapshot .

Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

This allows to track coverage across ruby templates such as haml, erb, ...

Simply set this within simplecov

SimpleCov.start do
  enable_coverage_for_eval
end
Posted by Felix Eschey to makandra dev (2023-03-29 11:05)