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

ruby-changes:35807

From: akr <ko1@a...>
Date: Sun, 12 Oct 2014 09:24:55 +0900 (JST)
Subject: [ruby-changes:35807] akr:r47889 (trunk): * test/lib/test/unit.rb: Hide skips by default.

akr	2014-10-12 09:24:40 +0900 (Sun, 12 Oct 2014)

  New Revision: 47889

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

  Log:
    * test/lib/test/unit.rb: Hide skips by default.

  Modified files:
    trunk/ChangeLog
    trunk/test/lib/test/unit.rb
    trunk/test/testunit/test_hideskip.rb
    trunk/test/testunit/test_sorting.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 47888)
+++ ChangeLog	(revision 47889)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun Oct 12 09:24:15 2014  Tanaka Akira  <akr@f...>
+
+	* test/lib/test/unit.rb: Hide skips by default.
+
 Sun Oct 12 01:37:11 2014  Yuki Yugui Sonoda  <yugui@y...>
 
 	* file.c: include sys/time.h only if HAVE_SYS_TIME_H
Index: test/testunit/test_hideskip.rb
===================================================================
--- test/testunit/test_hideskip.rb	(revision 47888)
+++ test/testunit/test_hideskip.rb	(revision 47889)
@@ -2,7 +2,7 @@ require 'test/unit' https://github.com/ruby/ruby/blob/trunk/test/testunit/test_hideskip.rb#L2
 
 class TestHideSkip < Test::Unit::TestCase
   def test_hideskip
-    assert_match(/assertions\/s.\n\n  1\) Skipped/, hideskip)
+    assert_not_match(/assertions\/s.\n\n  1\) Skipped/, hideskip)
     assert_match(/assertions\/s.\n\n  1\) Skipped/, hideskip("--show-skip"))
     assert_match(/assertions\/s.\n\n1 tests, 0 assertions, 0 failures, 0 errors, 1 skips/, hideskip("--hide-skip"))
   end
Index: test/testunit/test_sorting.rb
===================================================================
--- test/testunit/test_sorting.rb	(revision 47888)
+++ test/testunit/test_sorting.rb	(revision 47889)
@@ -2,7 +2,7 @@ require 'test/unit' https://github.com/ruby/ruby/blob/trunk/test/testunit/test_sorting.rb#L2
 
 class TestTestUnitSorting < Test::Unit::TestCase
   def test_sorting
-    result = sorting
+    result = sorting("--show-skip")
     assert_match(/^  1\) Skipped:/, result)
     assert_match(/^  2\) Failure:/, result)
     assert_match(/^  3\) Error:/,   result)
Index: test/lib/test/unit.rb
===================================================================
--- test/lib/test/unit.rb	(revision 47888)
+++ test/lib/test/unit.rb	(revision 47889)
@@ -76,6 +76,7 @@ module Test https://github.com/ruby/ruby/blob/trunk/test/lib/test/unit.rb#L76
 
         options[:retry] = true
         options[:job_status] = nil
+        options[:hide_skip] = true
 
         opts.on '-h', '--help', 'Display this help.' do
           puts opts

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

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