summaryrefslogtreecommitdiffstats
path: root/lib/test/unit.rb
Commit message (Collapse)AuthorAgeFilesLines
* * lib/test/unit.rb (Test::Unit.setup_argv): expands paths beforenobu2009-08-041-3/+3
| | | | | | | requiring. [ruby-dev:39012] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * {ext,lib,test}/**/*.rb: removed trailing spaces.nobu2009-03-061-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (Test::Unit.setup_argv): sorry, fixed wrong commit.usa2008-12-161-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (Test::Unit.setup_argv): ALT_SEPARATOR support.usa2008-12-161-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb: extracted from lib/test/unit.rb.akr2008-12-111-112/+2
| | | | | | | | lib/test/unit/testcase.rb: ditto. at asakusa.rb. [ruby-core:20014] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb: sorry, removed debug code.usa2008-11-041-1/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (Test::Unit.setup_argv): now can specify ``-xname''usa2008-11-041-5/+6
| | | | | | | | instead of ``-x name''. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (assert_nothing_raised): raise with backtrace.nobu2008-10-211-3/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (assert_nothing_raised): set backtrace.akr2008-10-211-1/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (Test::Unit.setup_argv): call given block forakr2008-10-191-18/+20
| | | | | | | | | | | | filtering files. * test/runner.rb: search srcdir/test/arg, srcdir/arg. * bin/testrb: show usage if no files given. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (assert_nothing_thrown): don't intern.akr2008-10-181-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (assert_nothing_thrown): implemented.akr2008-10-181-2/+13
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb: sort the order of executing tests.mame2008-10-161-0/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (assert_equal): avoid incompatible characterakr2008-10-161-0/+10
| | | | | | | encodings error. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (assert_equal): failure message changed.akr2008-10-161-1/+16
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit: removed test/unit.akr2008-10-161-271/+125
| | | | | | | | | | | | * lib/test/unit.rb: new compatibility layer using minitest. * bin/testrb: use above. * test/runner.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fixed missing test/unit.rb, bad svn merge. Rolled back test/runner.rbryan2008-10-101-0/+280
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Removing miniunitryan2008-10-101-10/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/mini/test_mini_test.rb: recovered. It had been temporarily removed at ↵yugui2008-10-041-278/+8
| | | | | | | | | | | | | r19645. * test/mini/test_mini_mock.rb: ditto. * test/mini/test_mini_spec.rb: ditto. * lib/test/**/*: replaced by miniunit. miniunit had been temporarily reverted at r19643 but now recovred. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Reverts the changes of lib/test/unit.rb in r19502 and r19501.yugui2008-09-301-0/+280
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Reverts the changes of lib/test/unit/* in r19543, r19534 and r19503.yugui2008-09-301-10/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Added miniunit 1.3.0ryan2008-09-231-0/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* committed one dir too deep. THIS removes the rest of test/unitryan2008-09-231-280/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* RDoc for #run= and #run?drbrain2006-08-041-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/collector.rb (collect_file): now deletes paths addedntalbott2005-02-171-1/+1
| | | | | | | | | | | | | | | to $LOAD_PATH instead of restoring it verbatim. * lib/test/unit/autorunner.rb (AutoRunner.run): fixed so that 'ruby -rtest/unit -rtest1 -rtest2 -e0' will use the objectspace collector again. Also tried to simplify the calling convention. * test/runner.rb: adjusted for new AutoRunner semantics. * lib/test/unit.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb: use standalone runner for -e.nobu2004-12-191-1/+5
| | | | | | | | | | | * lib/test/unit/autorunner.rb (Test::Unit::AutoRunner#options): accept multiple -p and -x options. * lib/test/unit/collector/dir.rb (Test::Unit::Collector::Dir#recursive_collect): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Move RDoc comments for Test::Unitdave2004-03-041-259/+258
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* From ruby_1_8 branch:gsinclair2004-02-011-5/+6
| | | | | | | | | * lib/test/unit.rb: rearranged documentation for RDoc's sake. * lib/matrix.rb: improved documentation. * lib/net/http.rb: slight documentation formatting improvement. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add RDoc to build. Add --ri-system to RDocdave2004-01-051-5/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bin/testrb: new test runner. [ruby-core:01845]nobu2003-12-021-1/+1
| | | | | | | | | | | | | | | | * lib/test/unit/autorunner.rb (Test::Unit::AutoRunner.run, Test::Unit::AutoRunner#initialize): take test list to run. * lib/test/unit/autorunner.rb (Test::Unit::AutoRunner::RUNNERS, Test::Unit::AutoRunner#run): should not exit inside a library, just return the result instead. * lib/test/unit.rb: ditto. * test/runner.rb: exit with the test result. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb: do not run tests if $! is set.ntalbott2003-11-181-1/+1
| | | | | | | | * lib/test/unit/assertionfailederror.rb: extend StandardError instead Exception (irb catches the former but not the latter). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb: removed installation instructions.ntalbott2003-10-081-120/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lib/test/unit/ui/testrunnermediator.rb: moved the run flag to a more central location. * lib/test/unit.rb: ditto. * lib/test/unit.rb: extracted the running code in to AutoRunner. * lib/test/unit/autorunner.rb: added. * lib/test/unit/collector/objectspace.rb: extracted common test collection functionality in to a module. * lib/test/unit/collector.rb: ditto; added. * test/testunit/collector/test_objectspace.rb: ditto. * lib/test/unit/collector/dir.rb: added. Supports collecting tests out of a directory structure. * test/testunit/collector/test_dir.rb: added. * test/runner.rb: simplified to use the new capabilities. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb: refactored to use optparse.ntalbott2003-10-031-28/+86
| | | | | | | | | | | | | | | | | | | * lib/test/unit.rb: added support for selecting the output level from the command-line. * lib/test/unit.rb: added a command-line switch to stop processing the command-line, allowing arguments to be passed to tests. * lib/test/unit.rb: changed the method for specifying a runner or a filter from the command-line. * lib/test/unit/collector/objectspace.rb: fixed a bug causing all tests to be excluded when the filter was set to an empty array. * test/testunit/collector/test_objectspace.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/testunit/*: Added.ntalbott2003-09-191-22/+134
| | | | | | | | | | | | | | | | * lib/test/unit.rb: Documentation update. * lib/test/unit/ui/console/testrunner.rb (TestRunner#initialize): Ditto. * lib/test/unit.rb: Factored out an ObjectSpace collector. * lib/test/unit/collector/objectspace.rb: Ditto. * sample/testunit/*: Added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * class.c (rb_obj_singleton_methods): should not go up tomatz2003-08-011-1/+2
| | | | | | | | | | | | | | ancestors unless the recursive flag is set. [ruby-list:38007] * hash.c (env_each_key): use env_keys to avoid environment modify on the fly. * hash.c (env_each_value): use env_values for safety. * hash.c (env_each): allocate environment array first. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Initial revisionntalbott2003-02-121-0/+214
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e