sorah
4c438fd0fe
* lib/test/unit/parallel.rb: Override Test::Unit::TestCase#on_parallel_worker?
...
only when $0 == __FILE__.
* lib/test/unit/parallel.rb: Run Test::Unit::Worker.run only when
$0 == __FILE__.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-19 01:12:02 +00:00
sorah
288c18cdd8
* test/testunit/test_parallel.rb: Fix Regexp for test.
...
* test/testunit/tests_for_parallel/test_third.rb: Use
Test::Unit::TestCase#on_parallel_worker? for detecting worker.
* lib/test/unit/testcase.rb(Test::Unit::TestCase#on_parallel_worker?):
New Method Test::Unit::TestCase#on_parallel_worker? returns true
when a testcase is running on parallel worker.
* lib/test/unit/parallel.rb(Test::Unit::TestCase#on_parallel_worker?):
ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-16 11:24:23 +00:00
sorah
6e125382d7
* lib/test/unit.rb(Test::Unit::Runner#_run_parallel): Ignore -j0
...
because it makes blocking forever by IO.select.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-15 22:27:11 +00:00
mrkn
da923d2b1f
* lib/test/unit.rb (Test::Unit::GlobOption#non_options): fix typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-13 05:22:40 +00:00
nobu
95e42dc152
* lib/test/unit.rb (Test::Unit::GlobOption#non_options): should run
...
with 1.8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 10:04:19 +00:00
naruse
09c8651387
Don't break test-all.
...
Revert "* lib/test/unit/assertions.rb (Test::Unit::Assertions#skip): reason to"
This reverts commit r31982.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-10 06:45:21 +00:00
nobu
3bc5b309be
* lib/test/unit/assertions.rb (Test::Unit::Assertions#skip): reason to
...
skip should be explained.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-10 04:04:41 +00:00
sorah
55ddfceed3
* lib/test/unit.rb(Test::Unit::Runner#puke):
...
Add overriding from MiniTest::Unit#puke. This reverts minitest's fix
that skip messages are hidden when not verbose mode (-v option).
To hide skip messages, use --hide-skip option instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-06 03:47:04 +00:00
sorah
d1a7670baf
* lib/test/unit/parallel.rb: Keep $stdin, $stdout before run testcase
...
and restore after run. Because some test break $stdin, $stdout.
Fixes [Bug #4433 ] [ruby-core:35353]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-03 11:48:47 +00:00
ryan
9b3e7967ab
Imported minitest 2.2.2 (r6281)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-01 22:34:09 +00:00
sorah
6dc0488148
* lib/test/unit/parallel.rb: Never Ignore SIGINT. When received
...
Interrupt, immediately puts result and exit. [ruby-dev:43571]
* lib/test/unit.rb: When received Interrupt, wait results from workers
and correct them. [ruby-dev:43571]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-23 00:10:49 +00:00
sorah
64495a2f85
* lib/test/unit.rb: Add option for hiding skip messages when test
...
ends. #4657
* test/testunit/test_hideskip.rb, test/testunit/test4test_hideskip.rb:
test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-10 05:53:46 +00:00
nobu
716a99389c
* lib/test/unit.rb (Test::Unit::Options#setup_options): set possible
...
values for completion. no conversion is needed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-14 13:48:18 +00:00
nobu
80020d092e
* lib/test/unit.rb (Test::Unit::Runner::Worker#initialize): use
...
positional arguments instead of keyword arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-14 13:48:14 +00:00
nobu
3d41f4df43
* lib/test/unit.rb (Test::Unit::Runner#jobs_status): io/console may
...
not be available. use 80 as the last resort if IO#winsize and
COLUMNS are unavailable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-14 13:48:09 +00:00
nobu
146bedd6c4
* lib/test/unit.rb (Test::Unit::Runner::Worker#died): rename using a
...
verb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-14 13:48:05 +00:00
nobu
ed1c3f56c0
* lib/test/unit.rb (Test::Unit::Runner#_run_parallel): check if worker
...
is signaled and use its exit status.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-14 13:48:00 +00:00
nobu
311b3b4ff8
* lib/test/unit.rb (Test::Unit::Runner::Worker#dead): no longer @in
...
and @out are separated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-14 13:47:55 +00:00
naruse
c85be42589
* lib/test/unit/parallel.rb: remove unused variable.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-21 21:42:23 +00:00
sorah
80b64d145a
* lib/test/unit.rb: Refactoring. Unified if and elsif.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-21 02:23:21 +00:00
naruse
9e53a0b142
* lib/test/unit.rb (Test::Unit::Runner::Worker#read): fix for the case
...
when IO#read or IO#gets returns nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-10 01:35:56 +00:00
sorah
31fcc22365
* lib/test/unit/parallel.rb: Fix name from `inclement_io` to
...
`increment_io`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-02 05:29:52 +00:00
sorah
39f90db925
* lib/test/unit/parallel.rb: Fix number.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-01 13:05:17 +00:00
sorah
0a9442983d
* lib/test/unit/parallel.rb: For Windows.
...
* test/testunit/test_parallel.rb(TestParallelWorker#test_quit_in_test):
Fix for above specification change.
* test/testunit/test_parallel.rb(TestParallel#spawn_runner):
Fix outputing empty line in running test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-01 12:54:39 +00:00
sorah
04ccb2fee2
* lib/test/unit.rb(Test::Unit::Runner#after_worker_quit):
...
method name more be natural English.
* lib/test/unit.rb(Test::Unit::Runner::Worker.launch):
IO.sync doesn't need. Should use "b" for mode.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-27 22:40:53 +00:00
sorah
c6598ffcae
* lib/test/unit.rb: Refactoring; Worker never use Hash for internal storage.
...
* lib/test/unit.rb: Never use Kernel#spawn. Use IO.popen instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-27 09:03:16 +00:00
nobu
715dc8355c
* lib/test/unit.rb, lib/test/unit/parallel.rb: remove trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-26 14:51:35 +00:00
sorah
86c7e68442
* lib/test/unit.rb: --jobs-status won't puts over 2 lines.
...
* test/testunit/test_parallel.rb: Fix test for above.
* lib/test/*: refactoring.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-26 07:17:59 +00:00
sorah
0695a5aa25
* common.mk: Use $RUNRUBY for worker process.
...
* lib/test/unit.rb: Fix bug.
* lib/test/unit.rb: @options[:ruby](@opts[:ruby]) is now Array.
* test/testunit/parallel.rb: Fix for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-24 04:47:48 +00:00
sorah
e9c22a6f1a
* test/testunit/tests_for_parallel/misc.rb: Fix bug in r30947.
...
* lib/test/unit.rb, lib/test/unit/assertions.rb: For this test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-24 01:08:51 +00:00
sorah
48fa6ed529
* test/testunit/test_parallel.rb, test/testunit/parallel/*:
...
Test for r30939.
* lib/test/unit.rb: For test.
* lib/test/parallel.rb: For test.
* lib/test/unit/testcase.rb: For test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-23 14:08:25 +00:00
sorah
8f1430d08b
* lib/test/unit.rb: Fix --ruby option doesn't effect.
...
* lib/test/unit.rb: Fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-22 14:16:38 +00:00
sorah
06aeddaf92
* lib/test/unit.rb: Fix merging miss.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-22 05:35:05 +00:00
sorah
a790bd0bd7
* lib/test/unit.rb: Add new options; --jobs,-j,--ruby,--jobs-status,
...
--no-retry.
[Feature #4415 ] [ruby-dev:43226],[ruby-dev:43222],[ruby-core:35294]
* lib/test/unit/parallel.rb: Used at test/unit --jobs(-j) option.
* test/csv/test_serialization.rb: test/unit parallel running ready.
* test/rake/test_file_task.rb: test/unit parallel running ready.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-22 03:36:38 +00:00
tenderlove
c36abbfd43
* lib/test/unit.rb: partial revert of r30849. [ruby-core:32864]
...
* test/testunit/test_rake_integration.rb: adding an integration test
with the rake loader to prevent regressions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-18 21:39:09 +00:00
usa
0755c1c8f2
* lib/test/unit.rb: revert r30863, because it causes too many noise.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-14 01:34:54 +00:00
nobu
63ca916ed4
* lib/test/unit.rb (Test::Unit::RequireFiles#non_options): skip
...
test suites failed to load instead of mere messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-13 10:41:59 +00:00
nobu
420d98e4a8
* lib/test/unit.rb (Test::Unit::Options#process_args): always
...
return options.
* lib/test/unit.rb (Test::Unit::RequireFiles#non_options): return
if any test case get loaded.
* lib/test/unit.rb (Test::Unit::AutoRunner#initialize): do not add
default directory if it is nil.
* lib/test/unit.rb (Test::Unit::AutoRunner#process_args): return
true if any test cases to run.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-12 15:29:24 +00:00
nobu
7f46fadd9d
* lib/test/unit.rb (assert_include): add alias.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-12 14:17:54 +00:00
nobu
aca69e1fdc
* lib/test/unit.rb (Test::Unit::AutoRunner#initialize): use
...
default_dir if no test case given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-12 05:41:38 +00:00
nobu
4e3df72f0d
* lib/test/unit.rb (Test::Unit::Runner): rename from Test::Unit::Mini.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-12 05:41:02 +00:00
nobu
58ed5a45ff
* lib/test/unit.rb (Test::Unit::GlobOption#non_options): run tests
...
under base directory if no argument given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-12 00:30:13 +00:00
nobu
9c560af1b7
* bin/testrb, test/runner.rb, lib/test/unit.rb: improve backward
...
compatibility.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-11 12:41:58 +00:00
nobu
180bf48fea
* lib/test/unit/assertions.rb (assert_no_match): alias for
...
backward compatibility.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-11 05:33:21 +00:00
kosaki
e66eec9284
* lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):
...
revert r30796. r30797 and r30798 are an alternative fix.
[ruby-dev:43174]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-05 13:06:14 +00:00
nobu
dd9341f02b
* lib/test/unit/assertions.rb (assert_block): move from
...
test/fileutils/fileasserts.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-05 12:22:27 +00:00
kosaki
49f8799af4
* lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):
...
msg can be passed nil. [Bug #4371 ] [ruby-dev:43174]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-05 07:50:12 +00:00
usa
1c93261983
* lib/test/unit.rb (process_args): need to setup @help to print options.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-15 11:45:57 +00:00
usa
949e6d454e
* lib/test/unit.rb: help messages.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-14 09:32:36 +00:00
nobu
5f37d6902a
* lib/test/unit.rb (Test::Unit::GCStressOption): --gc-stress
...
option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-01 22:20:23 +00:00