aboutsummaryrefslogtreecommitdiffstats
path: root/tool/lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Add debug printKazuhiro NISHIYAMA2019-11-091-0/+2
| | | | | | | | | | http://ci.rvm.jp/results/trunk-mjit@silicon-docker/2380788 ``` test_all #<Thread:0x000055b6c8e9fca8@/tmp/ruby/v2/src/trunk-mjit/tool/lib/test/unit/parallel.rb:42 run> terminated with exception (report_on_exception is true): <internal:pack>:134:in `pack': no implicit conversion of false into String (TypeError) from /tmp/ruby/v2/src/trunk-mjit/tool/lib/test/unit/parallel.rb:160:in `_report' from /tmp/ruby/v2/src/trunk-mjit/tool/lib/test/unit/parallel.rb:45:in `block in _run_suite' ```
* Try to run assert_output_unchanged with racc testsHiroshi SHIBATA2019-10-311-0/+3
|
* Catch syntax error even if fatalNobuyoshi Nakada2019-10-231-0/+2
|
* Revert "alias assert_raise_message for compatibility with test-unit"Nobuyoshi Nakada2019-10-161-1/+0
| | | | | | | | This reverts commit 43015275b9a7f2833c93ad11ea96ae4cb3b7acd7. `assert_raise_message` in test-unit is different from `assert_raise_with_message`. It checks the exception message only, but not the exception class,
* alias assert_raise_message for compatibility with test-unitNobuyoshi Nakada2019-10-161-0/+1
|
* [ruby/fileutils] improve the compatibility of minitestHiroshi SHIBATA2019-10-031-1/+2
| | | | https://github.com/ruby/fileutils/commit/f16f5a0dd6
* use bind_call for test-all --gc-stress卜部昌平2019-10-031-1/+1
| | | | | This one allocation of Method object is worth avoiding. We don't want to test UnboundMethod#bind right here. GC need not run.
* Enable checkers on parallel test.Koichi Sasada2019-10-021-0/+5
| | | | | | | | | parallel test (`make test-all TESTS=-j8`) runs tests on specified number of processes. However, some test checkers written in `runner.rb` are not loaded. This fix enable these checkers on parallel tests. See also: https://github.com/ruby/ruby/pull/2508
* expose assert_raise and assert_join_threadsHiroshi SHIBATA2019-10-012-116/+121
|
* assert_in_out_err should use FailDesc tooNobuyoshi Nakada2019-09-271-4/+2
|
* 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