1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Add the oneshot coverage feature to NEWS

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2018-10-20 12:01:41 +00:00
parent ae38485f4a
commit 09e82053b7

21
NEWS
View file

@ -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]