diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-20 12:01:41 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-20 12:01:41 +0000 |
commit | 09e82053b70bdd1aa753ef73650511e2324ec988 (patch) | |
tree | ec197f06fe2f6c0e92a72818d39a882283b15b99 /NEWS | |
parent | ae38485f4abbef795c76332348d715bee2a845f9 (diff) | |
download | ruby-09e82053b70bdd1aa753ef73650511e2324ec988.tar.gz |
Add the oneshot coverage feature to NEWS
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -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] |