aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test
Commit message (Collapse)AuthorAgeFilesLines
...
* lib/test/unit.rb: initialize ivarnobu2012-06-221-0/+1
| | | | | | | * lib/test/unit.rb (Test::Unit::Runner#del_status_line): initialize @status_line_size if needed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/test/unit.rb: workers sudden-deathnobu2012-06-201-1/+1
| | | | | | | * lib/test/unit.rb (Test::Unit::Runner#_run_parallel): deal with sudden-death of workers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/test/unit/parallel.rb: new method to report to the parentnobu2012-06-191-10/+15
| | | | | | | * lib/test/unit/parallel.rb (Test::Unit::Worker#_report): extract method to report to the parent process git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test: reduce unnecessary outputnobu2012-06-161-1/+1
| | | | | | | * lib/test/unit.rb (Test::Unit::Runner#_run_parallel): no empty lines if no warnigs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test: reduce unnecessary outputnobu2012-06-161-3/+4
| | | | | | | * lib/test/unit.rb (Test::Unit::Runner#_run_parallel): print retrying message only if retrying. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test: reduce unnecessary outputnobu2012-06-161-8/+11
| | | | | | | | | | | | | * lib/test/unit.rb (Test::Unit::Runner#del_status_line): update @status_line_size and return true value. * lib/test/unit.rb (Test::Unit::Runner#{put,add,jobs}_status): return non-nil/false if status line is used. * lib/test/unit.rb (Test::Unit::Runner#_run_parallel): clear status line at last. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/test/unit.rb: format workers results in the parentnobu2012-06-151-1/+3
| | | | | | | * lib/test/unit.rb (Test::Unit::Runner#_run_parallel): format workers results in the parent. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/test/unit: refactoring pukenobu2012-06-152-17/+15
| | | | | | | | | | | | * lib/test/unit.rb (Test::Unit::Runner#puke): modify only result and drop useless reports, not override entirely. * lib/test/unit/parallel.rb (Test::Unit::Worker#_run_suite): report unformatted results. formatting messages is not a workers task. * lib/test/unit/parallel.rb (Test::Unit::Worker#puke): store raw results. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Revert r35576 "lib/test/unit.rb: refactoring puke"nobu2012-06-151-7/+15
| | | | | | | * lib/test/unit.rb (Test::Unit::Runner#puke): always add skipped results to the report for parallel test. [Bug #6595] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test: TEST_COLORSnobu2012-06-151-1/+1
| | | | | | | | * 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
* test: skipped colornobu2012-06-151-3/+9
| | | | | | | * 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
* test: TEST_COLORSnobu2012-06-151-3/+5
| | | | | | | | | | | * 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
* win32: VT100 escapenobu2012-06-041-1/+0
| | | | | | | | * 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
* lib/test/unit.rb: split platform conditionnobu2012-05-301-1/+2
| | | | | | * 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
* StatusLineOutput needs job_status to be :replacenobu2012-05-281-0/+1
| | | | | | | | * 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
* fix operator precedencenobu2012-05-271-1/+1
| | | | | | | | * 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
* lib/test/unit.rb: not override job_status optionnobu2012-05-211-1/+1
| | | | | | | * 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
* lib/test/unit.rb: simple ouput if verbosenobu2012-05-211-2/+3
| | | | | | | * 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
* lib/test/unit.rb: not overwrite options itselfnobu2012-05-201-1/+1
| | | | | | | * 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
* lib/test/unit.rb: --color optionnobu2012-05-151-14/+30
| | | | | | | | * 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
* lib/test/unit.rb: no unnecessary newlinesnobu2012-05-111-2/+5
| | | | | | | | * 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
* lib/test/unit.rb: remove exact tracenobu2012-05-081-1/+2
| | | | | | | | * 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
* tests: customizable colorsnobu2012-05-081-1/+1
| | | | | | | * 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
* lib/test/unit.rb: old behavior if verbosenobu2012-05-081-2/+2
| | | | | | | * 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
* lib/test/unit.rb: initialize instace variablenobu2012-05-071-1/+1
| | | | | | | * 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
* lib/test/unit.rb: use local outputnobu2012-05-071-1/+5
| | | | | | | | * 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
* lib/test/unit.rb: test name in $0nobu2012-05-071-0/+11
| | | | | | | * 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
* lib/test/unit.rb: output in status linenobu2012-05-071-24/+97
| | | | | | | | * 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
* lib/test/unit.rb: refactoring pukenobu2012-05-071-15/+7
| | | | | | | | * 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
* * lib/test/unit.rb (Test::Unit::RequireFiles#non_options): expandnobu2012-05-021-1/+1
| | | | | | | 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
* * lib/test/unit.rb (Test::Unit:Runner::Worker#_run_suites):naruse2012-04-111-0/+1
| | | | | | 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
* * lib/test/unit.rb (terminal_width, del_status_line, put_status):nobu2012-03-292-16/+38
| | | | | | | extract as methods. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb: Put error message into STDERR if failed to lanchsorah2012-03-112-23/+38
| | | | | | | | | 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
* * lib/test/unit.rb (Test::Unit::Runner#puke): skips with nonobu2012-02-271-0/+1
| | | | | | | messages should be trivial. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (setup_options): add option "--retry" as oppositesorah2012-02-221-3/+9
| | | | | | for "--no-retry" git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (setup_options): add option "--show-skip" tosorah2012-02-221-0/+4
| | | | | | cancel "--hide-skip" (-q) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb (build_message): skip escapednobu2012-02-141-1/+1
| | | | | | | question marks. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/parallel.rb: use pack("m0") instead ofkazu2012-01-022-5/+5
| | | | | | | 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
* * lib/test/unit.rb (Test::Unit::Runner::Worker#run): usekazu2012-01-021-1/+1
| | | | | | File.basename with suffix instead of gsub. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (Test::Unit::Runner#_run_parallel): find maykazu2012-01-021-1/+2
| | | | | | return nil and nil can not dup. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (Test::Unit::Runner::Worker#_run_parallels): fixnagachika2011-12-291-1/+3
| | | | | | | 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
* * lib/test/unit.rb (Worker#close): "closing IO if IO is closed"sorah2011-12-271-1/+1
| | | | | | 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
* * lib/test/unit.rb: Avoid zombie processes on "--separate" optionsorah2011-12-261-1/+4
| | | | | | added at r34121. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (_run_parallel):sorah2011-12-252-8/+35
| | | | | | | | | | | 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
* * test/unit/assertions.rb (MINI_DIR): quick dirty hack to get rid ofusa2011-11-181-2/+4
| | | | | | | warnings when using assert/assert_respond_to. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (Test::Unit::Options#non_options): options[:ruby]akr2011-11-051-1/+1
| | | | | | | | | 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
* * lib/test/unit/assertions.rb (assert_send, assert_not_send):nobu2011-10-071-2/+2
| | | | | | parenthesize non-empty arguments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb (Test::Unit::Assertions#assert_send): fix message.nobu2011-09-121-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb (assert_send): make arguments innobu2011-09-121-0/+52
| | | | | | the default message clearer. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (_run_suites): Now reports are written thesorah2011-09-061-0/+8
| | | | | | | | | | | | | 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