diff --git a/NEWS b/NEWS index 82d7baeadd..e186b04eb8 100644 --- a/NEWS +++ b/NEWS @@ -258,6 +258,27 @@ sufficient information, see the ChangeLog file or Redmine === Stdlib updates (outstanding ones only) +[Coverage] + + An oneshot_lines mode is added. [Feature #15022] + This mode checks "whether each line was executed at least once or not", + instead of "how many times each line was executed". + A hook for each line is fired at most once, and after it is fired, + the hook flag was removed, i.e., it runs with zero overhead. + + [New options] + + * Add +:oneshot_lines+ keyword argument to Coverage.start. + + * Add +:stop:+ and +:clear:+ keyword arguments to Coverage.result. + If +clear+ is true, it clears the counters to zero. + If +stop+ is true, it disables coverage measurement. + + [New methods] + + * Coverage.line_stub, which is a simple helper function that + creates the "stub" of line coverage from a given source code. + [ERB] [New options]