1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2014-10-12 00:24:40 +00:00
parent 8980a9b47b
commit 178bc9a0e7
4 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Sun Oct 12 09:24:15 2014 Tanaka Akira <akr@fsij.org>
* test/lib/test/unit.rb: Hide skips by default.
Sun Oct 12 01:37:11 2014 Yuki Yugui Sonoda <yugui@yugui.jp>
* file.c: include sys/time.h only if HAVE_SYS_TIME_H

View file

@ -76,6 +76,7 @@ module Test
options[:retry] = true
options[:job_status] = nil
options[:hide_skip] = true
opts.on '-h', '--help', 'Display this help.' do
puts opts

View file

@ -2,7 +2,7 @@ require 'test/unit'
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

View file

@ -2,7 +2,7 @@ require 'test/unit'
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)