[前][次][番号順一覧][スレッド一覧]

ruby-changes:53024

From: mame <ko1@a...>
Date: Sat, 20 Oct 2018 21:01:46 +0900 (JST)
Subject: [ruby-changes:53024] mame:r65238 (trunk): Add the oneshot coverage feature to NEWS

mame	2018-10-20 21:01:41 +0900 (Sat, 20 Oct 2018)

  New Revision: 65238

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65238

  Log:
    Add the oneshot coverage feature to NEWS

  Modified files:
    trunk/NEWS
Index: NEWS
===================================================================
--- NEWS	(revision 65237)
+++ NEWS	(revision 65238)
@@ -258,6 +258,27 @@ sufficient information, see the ChangeLo https://github.com/ruby/ruby/blob/trunk/NEWS#L258
 
 === 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]

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]