nobu
19b4b7de3b
test: TEST_COLORS
...
* bootstraptest/runner.rb (main): fixed typo.
* lib/test/unit.rb (Test::Unit::Runner#_prepare_run): ditto.
* sample/test.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-06-15 01:38:32 +00:00
nobu
fa6a2e0324
test: skipped color
...
* lib/test/unit.rb (Test::Unit::Runner#failed): use different color
for Skipped.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-06-15 00:56:41 +00:00
nobu
0243943aad
test: TEST_COLORS
...
* bootstraptest/runner.rb (main): customize colors by dircolors-like
style environment variable TEST_COLORS.
* lib/test/unit.rb (Test::Unit::Runner#_prepare_run): ditto.
* sample/test.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-06-15 00:56:39 +00:00
nobu
82aa43407c
win32: VT100 escape
...
* win32/win32.c (constat_apply): apply VT100 functions.
[ruby-core:44958] [Feature #6418 ]
* win32/win32.c (constat_parse): parse some VT100 escape sequence.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-06-04 06:39:40 +00:00
nobu
7d303b2d10
lib/test/unit.rb: split platform condition
...
* lib/test/unit.rb (Test::Unit::Runner#_prepare_run): split platform condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-30 01:29:08 +00:00
nobu
de7a47d1aa
StatusLineOutput needs job_status to be :replace
...
* lib/test/unit.rb (Test::Unit::Runner#_prepare_run): StatusLineOutput
needs job_status to be :replace.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-28 07:56:58 +00:00
nobu
2d8b8b4d3e
fix operator precedence
...
* lib/test/unit.rb (Test::Unit::Runner#_prepare_run): fix operator
precedence, so that platform and TERM should be counted.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-27 02:27:53 +00:00
nobu
e7ce771354
lib/test/unit.rb: not override job_status option
...
* lib/test/unit.rb (Test::Unit::Runner#_prepare_run): not override
job_status option if no tty.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-21 07:36:58 +00:00
nobu
9c14029fce
lib/test/unit.rb: simple ouput if verbose
...
* lib/test/unit.rb (Test::Unit::Runner#_prepare_run): use simple
output if verbose mode and no job-status option given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-21 07:05:50 +00:00
nobu
7899034343
lib/test/unit.rb: not overwrite options itself
...
* lib/test/unit.rb (Test::Unit::Runner#_prepare_run): not overwrite
options itself.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-20 15:58:00 +00:00
nobu
5bca86dde2
lib/test/unit.rb: --color option
...
* lib/test/unit.rb (Test::Unit::Options#setup_options): add --color option.
* lib/test/unit.rb (Test::Unit::Runner#_prepare_run): defer color code
initialization to regard --color option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-15 14:59:50 +00:00
nobu
5f58cd0906
lib/test/unit.rb: no unnecessary newlines
...
* lib/test/unit.rb (Test::Unit::Runner#failed): no unnecessary
newlines if no reports to be displayed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-11 00:51:10 +00:00
nobu
b4b9183ffc
lib/test/unit.rb: remove exact trace
...
* lib/test/unit.rb (MiniTest#run_test): remove exact trace and get rid
of IndexError, which could caused by modified $@ sometimes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-08 04:35:13 +00:00
nobu
779922622b
tests: customizable colors
...
* bootstraptest/runner.rb, lib/test/unit.rb, sample/test.rb:
customizable colors.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-08 00:25:47 +00:00
nobu
1af101f8ed
lib/test/unit.rb: old behavior if verbose
...
* lib/test/unit.rb (Test::Unit::Runner#_prepare_run): keep the old
behavior if --verbose option is given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-08 00:25:43 +00:00
nobu
bd62d2a95e
lib/test/unit.rb: initialize instace variable
...
* lib/test/unit.rb (Test::Unit::Runner#output): suppress uninitialized
instance variable warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-07 20:12:20 +00:00
nobu
5789992f33
lib/test/unit.rb: use local output
...
* lib/test/unit.rb (Test::Unit::Runner#output): prefer local output to
get rid of unexpected side effect in test/minitest/metametameta.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-07 19:47:47 +00:00
nobu
13c76c07e4
lib/test/unit.rb: test name in $0
...
* lib/test/unit.rb (MiniTest#run_test): show the running test in $0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-07 18:54:37 +00:00
nobu
fbebe84864
lib/test/unit.rb: output in status line
...
* lib/test/unit.rb (Test::Unit::StatusLineOutput): new class to output
in status line.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-07 18:54:23 +00:00
nobu
ec76e156fe
lib/test/unit.rb: refactoring puke
...
* lib/test/unit.rb (Test::Unit::Runner#puke): modify only result and
drop useless reports, not override entirely.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-07 18:53:56 +00:00
nobu
db33b28cc3
* lib/test/unit.rb (Test::Unit::RequireFiles#non_options): expand
...
real path to get rid of loading same files via symlinks.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-02 14:55:53 +00:00
naruse
ce0223b15b
* lib/test/unit.rb (Test::Unit:Runner::Worker#_run_suites):
...
call GC.start before running the test suites.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-11 18:55:32 +00:00
nobu
95b30b0d07
* lib/test/unit.rb (terminal_width, del_status_line, put_status):
...
extract as methods.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-29 07:35:38 +00:00
sorah
42b1df08fc
* lib/test/unit.rb: Put error message into STDERR if failed to lanch
...
worker (job) process. [ruby-dev:44802] [Bug #5577 ]
* lib/test/unit/parallel.rb: If failed to increment_io, exit with code
2. [ruby-dev:44802] [Bug #5577 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-11 08:28:48 +00:00
nobu
90080e3a2e
* lib/test/unit.rb (Test::Unit::Runner#puke): skips with no
...
messages should be trivial.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-27 01:53:14 +00:00
sorah
1a6b0bab94
* lib/test/unit.rb (setup_options): add option "--retry" as opposite
...
for "--no-retry"
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 09:47:28 +00:00
sorah
c0ec3efcae
* 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
2012-02-22 09:47:24 +00:00
nobu
799680354e
* lib/test/unit/assertions.rb (build_message): skip escaped
...
question marks.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-14 06:06:40 +00:00
kazu
7d9fe82be4
* lib/test/unit/parallel.rb: use pack("m0") instead of
...
pack("m").gsub("\n","").
* lib/test/unit.rb (Test::Unit::Runner::Worker#run): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-02 06:13:29 +00:00
kazu
38cee6b43e
* lib/test/unit.rb (Test::Unit::Runner::Worker#run): use
...
File.basename with suffix instead of gsub.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-02 06:08:29 +00:00
kazu
bb28d902e8
* lib/test/unit.rb (Test::Unit::Runner#_run_parallel): find may
...
return nil and nil can not dup.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-02 05:56:55 +00:00
nagachika
59130ced83
* lib/test/unit.rb (Test::Unit::Runner::Worker#_run_parallels): fix
...
premature exit when all workers' status are :ready or :prepare.
[ruby-dev:45061] [Bug #5822 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-12-29 13:42:18 +00:00
sorah
2828593e1a
* lib/test/unit.rb (Worker#close): "closing IO if IO is closed"
...
should be "closing IO if IO isn't closed"
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-12-27 13:37:49 +00:00
sorah
48053fe615
* lib/test/unit.rb: Avoid zombie processes on "--separate" option
...
added at r34121.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-12-26 04:08:44 +00:00
sorah
60da7a36f5
* lib/test/unit.rb (_run_parallel):
...
New option "--separate" for test/unit; when running tests with this
option, a job process will be restarted after one testcase has done.
This means all testcases will run with separated process.
* lib/test/unit/parallel.rb: Fix for above. Now parallel.rb puts
"ready!" for first ready, "ready" for afters.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-12-25 13:47:21 +00:00
usa
7491541e16
* test/unit/assertions.rb (MINI_DIR): quick dirty hack to get rid of
...
warnings when using assert/assert_respond_to.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-18 04:21:23 +00:00
akr
df334f5277
* lib/test/unit.rb (Test::Unit::Options#non_options): options[:ruby]
...
should be an array. This fixes
"./ruby test/runner.rb test/testunit/test_parallel.rb"
[ruby-dev:44782]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-05 15:14:33 +00:00
nobu
e50c05f7f6
* lib/test/unit/assertions.rb (assert_send, assert_not_send):
...
parenthesize non-empty arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-07 08:54:30 +00:00
nobu
53fd35c304
* lib/test/unit/assertions.rb (Test::Unit::Assertions#assert_send): fix message.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-12 13:24:19 +00:00
nobu
1161616768
* lib/test/unit/assertions.rb (assert_send): make arguments in
...
the default message clearer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-12 03:40:49 +00:00
sorah
7e04b19d22
* lib/test/unit.rb (_run_suites): Now reports are written the
...
following order: Skip, Failure, Error. [Feature #5282 ]
* test_sorting.rb: test for above.
* test4test_sorting.rb: Ditto.
* lib/test/unit.rb (run): Put RUBY_DESCIPTION before quitting.
[Feature #5282 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-06 12:20:17 +00:00
sorah
1d4da24e21
* lib/test/unit.rb(Test::Unit::Options#process_args): Fix bug.
...
Fix process_args didn't return `@option` after r30939.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-12 08:09:15 +00:00
sorah
7506a580fe
* lib/test/unit.rb: Add new class variable @@testfile_prefix
.
...
This is for changing test name prefix. (For testing)
* test/testunit/tests_for_parallel/ptest_first.rb: Renamed from
test_first.rb
* test/testunit/tests_for_parallel/ptest_second.rb: Renamed from
test_second.rb
* test/testunit/tests_for_parallel/ptest_third.rb: Renamed from
test_third.rb
* test/testunit/tests_for_parallel/ptest_forth.rb: Renamed from
test_forth.rb
* test/testunit/tests_for_parallel/runner.rb: Remove misc.rb
* test/testunit/tests_for_parallel/ptest_first.rb: ditto.
* test/testunit/tests_for_parallel/ptest_second.rb: ditto.
* test/testunit/tests_for_parallel/ptest_third.rb: ditto.
* test/testunit/tests_for_parallel/ptest_forth.rb: ditto.
* test/testunit/tests_for_parallel/misc.rb: Removed because no longer
needed.
* test/testunit/test_parallel.rb: Fix assertions for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-10 12:19:16 +00:00
sorah
8c812c9a03
* lib/test/unit/assertions.rb: Import documentation patch by Justin
...
Collins. [ruby-core:37225] [Feature #4903 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-10 06:11:49 +00:00
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