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

ruby-changes:42121

From: nobu <ko1@a...>
Date: Sat, 19 Mar 2016 21:56:31 +0900 (JST)
Subject: [ruby-changes:42121] nobu:r54195 (trunk): test/unit.rb: defer failures in verbose mode

nobu	2016-03-19 21:56:25 +0900 (Sat, 19 Mar 2016)

  New Revision: 54195

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

  Log:
    test/unit.rb: defer failures in verbose mode
    
    * test/lib/test/unit.rb (Test::Unit::StatusLine#failed): defer
      failed messages until the end in verbose mode, to get rid of
      interleaving failures with progress messages.

  Modified files:
    trunk/ChangeLog
    trunk/test/lib/test/unit.rb
Index: test/lib/test/unit.rb
===================================================================
--- test/lib/test/unit.rb	(revision 54194)
+++ test/lib/test/unit.rb	(revision 54195)
@@ -649,6 +649,7 @@ module Test https://github.com/ruby/ruby/blob/trunk/test/lib/test/unit.rb#L649
       def succeed; del_status_line; end
 
       def failed(s)
+        return if s and @options[:verbose]
         sep = "\n"
         @report_count ||= 0
         report.each do |msg|
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 54194)
+++ ChangeLog	(revision 54195)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Mar 19 21:56:23 2016  Nobuyoshi Nakada  <nobu@r...>
+
+	* test/lib/test/unit.rb (Test::Unit::StatusLine#failed): defer
+	  failed messages until the end in verbose mode, to get rid of
+	  interleaving failures with progress messages.
+
 Sat Mar 19 21:53:35 2016  Nobuyoshi Nakada  <nobu@r...>
 
 	* numeric.c (fix_cmp): invert the result as the comarison is

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

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