mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/test/unit.rb (setup_options): add option "--show-skip" to
cancel "--hide-skip" (-q) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b67bc8d722
commit
c0ec3efcae
3 changed files with 16 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Feb 22 18:34:02 2012 Shota Fukumori <sorah@tubusu.net>
|
||||
|
||||
* lib/test/unit.rb (setup_options): add option "--show-skip" to
|
||||
cancel "--hide-skip" (-q)
|
||||
|
||||
Wed Feb 22 17:36:22 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* io.c (rb_io_s_foreach): argument check before making Enumerator.
|
||||
|
|
|
@ -112,6 +112,10 @@ module Test
|
|||
opts.on '-q', '--hide-skip', 'Hide skipped tests' do
|
||||
options[:hide_skip] = true
|
||||
end
|
||||
|
||||
opts.on '--show-skip', 'Show skipped tests' do
|
||||
options[:hide_skip] = false
|
||||
end
|
||||
end
|
||||
|
||||
def non_options(files, options)
|
||||
|
|
|
@ -9,6 +9,13 @@ class TestHideSkip < Test::Unit::TestCase
|
|||
assert_match(/assertions\/s.\n\n 1\) Skipped/,test_out.read)
|
||||
test_out.close
|
||||
|
||||
test_out, o = IO.pipe
|
||||
spawn(*@options[:ruby], "#{File.dirname(__FILE__)}/test4test_hideskip.rb",
|
||||
"--show-skip", out: o, err: o)
|
||||
o.close
|
||||
assert_match(/assertions\/s.\n\n 1\) Skipped/,test_out.read)
|
||||
test_out.close
|
||||
|
||||
test_out, o = IO.pipe
|
||||
spawn(*@options[:ruby], "#{File.dirname(__FILE__)}/test4test_hideskip.rb",
|
||||
"--hide-skip", out: o, err: o)
|
||||
|
|
Loading…
Reference in a new issue