From: "ioquatix (Samuel Williams)" Date: 2022-09-23T02:05:33+00:00 Subject: [ruby-core:110024] [Ruby master Feature#19008] Introduce coverage support for `eval`. Issue #19008 has been updated by ioquatix (Samuel Williams). Thanks Jeremy. > Your use case (ERB coverage) is apparently limited to files that aren't required. However, eval methods are used with __FILE__ on a regular basis for metaprogramming. My use case is general coverage, including files that are required, and include `eval`. I'm not sure why this is a problem, can you show a use case where this produces undesirable results (excepting code which is already invalid, like file and line numbers that don't make sense)? > it would be best to be able to look at all evals separately Why? I want per-file coverage, this is how coverage tools today work. ---------------------------------------- Feature #19008: Introduce coverage support for `eval`. https://bugs.ruby-lang.org/issues/19008#change-99275 * 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: