From: "mame (Yusuke Endoh)" Date: 2022-09-28T07:53:01+00:00 Subject: [ruby-core:110117] [Ruby master Feature#19008] Introduce coverage support for `eval`. Issue #19008 has been updated by mame (Yusuke Endoh). @ioquatix said he could implement `Coverage.start(eval: true)` soon, so I would like to wait for him instead of reverting the commit in question. ioquatix (Samuel Williams) wrote in #note-18: > However, I think the normal `Coverage.start(:all)` should default to true for eval. I talked with @ioquatix about this. I think "false" is safer, but AFAIK not so many people are using `:all` option, so I hope "true" is acceptable. ---------------------------------------- Feature #19008: Introduce coverage support for `eval`. https://bugs.ruby-lang.org/issues/19008#change-99374 * Author: ioquatix (Samuel Williams) * Status: Open * Priority: Normal ---------------------------------------- I'd like to introduce coverage support for `eval`. I mostly only care about the case where an explicit path is given, and I'd even be okay to only handle the case where the line number is the default (0). https://github.com/ruby/ruby/pull/6396 This is an incredibly useful feature for computing coverage of ERB templates and other similar things. -- https://bugs.ruby-lang.org/ Unsubscribe: