aboutsummaryrefslogtreecommitdiffstats
path: root/tool/lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Move some assertions to CoreAssertions. (#2354)SHIBATA Hiroshi2019-08-142-66/+66
| | | | | | | They are used by default gems like forwardable. * assert_raise_with_message * assert_warning * assert_warn
* Use `end_with?` instead of Regexp with missing escapeKazuhiro NISHIYAMA2019-08-111-1/+1
|
* complement `test_` prefix.Koichi Sasada2019-08-091-5/+14
| | | | | | | `make test-all TESTS=name` can specify running test files by name. name can be dirname ('dir/') or a file ('.../test_foo.rb'). This patch complement `test_` prefix for a test. So we only need to specify `TESTS=ruby/hash` which means `TESTS=ruby/test_hash.rb`.
* Moved FailDesc to EnvUtil.failure_descriptionNobuyoshi Nakada2019-08-051-30/+2
| | | | So EnvUtil does not depends on test/unit.
* Move assert_ruby_status and assert_throw to CoreAssertions for default gems.Hiroshi SHIBATA2019-08-032-37/+37
|
* It can be share to use CoreAssertions for default gems.Hiroshi SHIBATA2019-08-021-4/+29
| | | | ref. https://github.com/ruby/logger/pull/35
* Use libraries in the base directory if givenNobuyoshi Nakada2019-07-251-1/+2
|
* Added --base-directory optionNobuyoshi Nakada2019-07-251-0/+4
|
* Moved NoMemoryError hookNobuyoshi Nakada2019-07-251-4/+8
| | | | | Moved NoMemoryError hook from AutoRunner.run to Runner#run, so it will work even in non-autorunning mode.
* Moved NoMemoryError hook to Test::Unit::AutoRunnerNobuyoshi Nakada2019-07-251-0/+4
|
* @@project_dir in Gem::TestCase is no longer usedNobuyoshi Nakada2019-07-241-6/+0
|
* tool/test/runner.rb: support --test-target-dir optionYusuke Endoh2019-07-211-3/+0
| | | | | | | | | | | tool/test/runner.rb had been copied from test/runner.rb. test/runner.rb was for `make test-all`, and tool/test/runner.rb was for `make test-testframework` and `make test-tool`. But I want to avoid the code clones. This change makes tool/test/runner.rb support --test-target-dir option which allows tool/test/runner.rb to run `make test-all`. Now we can remove test/runner.rb.
* Separate the assertions of ruby core tests from test/unit/assertions.Hiroshi SHIBATA2019-07-152-205/+218
|
* Put colorize to library directory.Hiroshi SHIBATA2019-07-151-1/+1
| | | | Same as 66299e7ca83d379d13abaa5411f3e0419334cabb
* complement '.rb' on `test-all TESTS=test_xxx`Koichi Sasada2019-07-141-22/+32
| | | | | | for test-all rule, we can specify a file with TESTS option like `TESTS=test_xxx.rb`. However, we can eliminate last '.rb' suffix so this patch try with '.rb' suffix if the given path is not available.
* Move to tool/lib from test/lib.Hiroshi SHIBATA2019-07-024-0/+2403