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

ruby-changes:46540

From: nobu <ko1@a...>
Date: Thu, 11 May 2017 08:52:22 +0900 (JST)
Subject: [ruby-changes:46540] nobu:r58661 (trunk): fix up r57167

nobu	2017-05-11 08:52:14 +0900 (Thu, 11 May 2017)

  New Revision: 58661

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

  Log:
    fix up r57167
    
    * test/lib/minitest/unit.rb (MiniTest::Unit#_run_anything): stop
      if any errors or failures.

  Modified files:
    trunk/test/lib/minitest/unit.rb
Index: test/lib/minitest/unit.rb
===================================================================
--- test/lib/minitest/unit.rb	(revision 58660)
+++ test/lib/minitest/unit.rb	(revision 58661)
@@ -900,7 +900,8 @@ module MiniTest https://github.com/ruby/ruby/blob/trunk/test/lib/minitest/unit.rb#L900
         puts "Finished%s %ss in %.6fs, %.4f tests/s, %.4f assertions/s.\n" %
              [(@repeat_count ? "(#{count}/#{@repeat_count}) " : ""), type,
                t, @test_count.fdiv(t), @assertion_count.fdiv(t)]
-      end while @repeat_count && count < @repeat_count && report.empty?
+      end while @repeat_count && count < @repeat_count &&
+                report.empty? && failures.zero? && errors.zero?
 
       output.sync = old_sync if sync
 

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

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