summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-20 12:01:41 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-20 12:01:41 +0000
commit09e82053b70bdd1aa753ef73650511e2324ec988 (patch)
treeec197f06fe2f6c0e92a72818d39a882283b15b99 /NEWS
parentae38485f4abbef795c76332348d715bee2a845f9 (diff)
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--NEWS21
1 files changed, 21 insertions, 0 deletions
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]