summaryrefslogtreecommitdiff
path: root/tool/lib/test/unit
AgeCommit message (Collapse)Author
2021-09-11Move constants under the TestCaseHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/4813
2021-09-11Migrate MiniTest::Unit::TestCase class under the Test::UnitHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/4813
2021-09-11Move MiniTest::Assertions to Test::Unit::AssertionsHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/4813
2021-09-06Use Test::Unit::PendedError instead of MiniTest::Skip for test-unit migrationHiroshi SHIBATA
2021-09-06Simplify conditions for CoreAssertion initializationHiroshi SHIBATA
2021-08-05check GC.enable'd statusKoichi Sasada
Check GC.enable'd status before and after test execution. Write this checker in gc_checker.rb, it was renamed from gc_compact_checker.rb. Notes: Merged: https://github.com/ruby/ruby/pull/4710
2021-07-11Move core_assertions.rb from test/unitNobuyoshi Nakada
This file contains extended assertions for ruby core which do not belong to test/unit.
2021-06-01Expose assert_all? for ruby/csv repoHiroshi SHIBATA
2021-03-08[ruby/stringio] Include all modules included into Test::Unit::TestCaseNobuyoshi Nakada
Some methods are separated into modules in test-unit now. https://github.com/ruby/stringio/commit/d289848994
2021-03-08[ruby/stringio] Pass IOs as separate list for ruby 2.xNobuyoshi Nakada
https://github.com/ruby/stringio/commit/74e39858eb
2021-01-13Rename RubyVM::MJIT to RubyVM::JITTakashi Kokubun
because the name "MJIT" is an internal code name, it's inconsistent with --jit while they are related to each other, and I want to discourage future JIT implementation-specific (e.g. MJIT-specific) APIs by this rename. [Feature #17490]
2020-12-24Pass keyword options in assert_syntax_errorNobuyoshi Nakada
2020-12-23[ruby/date] Workaround for non-ruby repository like ruby/date, flori/jsonHiroshi SHIBATA
https://github.com/ruby/date/commit/1ff7fa2d80
2020-12-20Add `require_relative` option to `assert_ractor`Marc-Andre Lafortune
2020-12-19`assert_ractor` tweak. Thanks NobuMarc-Andre Lafortune
2020-12-19Add `assert_ractor` [Feature #17367]Marc-Andre Lafortune
Notes: Merged: https://github.com/ruby/ruby/pull/3942
2020-12-18Use category: :deprecated in warnings that are related to deprecationJeremy Evans
Also document that both :deprecated and :experimental are supported :category option values. The locations where warnings were marked as deprecation warnings was previously reviewed by shyouhei. Comment a couple locations where deprecation warnings should probably be used but are not currently used because deprecation warning enablement has not occurred at the time they are called (RUBY_FREE_MIN, RUBY_HEAP_MIN_SLOTS, -K). Add assert_deprecated_warn to test assertions. Use this to simplify some tests, and fix failing tests after marking some warnings with deprecated category. Notes: Merged: https://github.com/ruby/ruby/pull/3917
2020-12-17test/ruby: Check warning messages at a finer granularityNobuyoshi Nakada
Instead of suppressing all warnings wholly in each test scripts by setting `$VERBOSE` to `nil` in `setup` methods. Notes: Merged: https://github.com/ruby/ruby/pull/3925 Merged-By: nobu <[email protected]>
2020-12-01tune parallel testKoichi Sasada
This patch contains the fowllowing hacks: (1) Add "--timetable-data=FILE" option for test-all This option enables to dump timeline event contains worker, suite, and start/end time. (2) remove TestJIT in test_jit_debug.rb on parallel test. it is duplicated test. (3) move test_jit.rb and test_jit_debug.rb at first because these two tests are bottleneck of parallel tests. On my environment, `make test-all TESTS=-j12` reduced the total time 190 seconds -> 140 seconds. Notes: Merged: https://github.com/ruby/ruby/pull/3826
2020-10-08Expose assert, assert_respond_to and assert_not_respond_to for default gems.Hiroshi SHIBATA
2020-09-14Added just working Test::Unit::CoreAssertions#diffNobuyoshi Nakada
This is not "diff", but show expected and actual results both, just to get rid of `NoMethodError` when an assertion failed.
2020-07-02Expose `assert_pattern_list` for drb test with test-unit gem.Hiroshi SHIBATA
2020-04-17Rescue EPIPE in _reportNobuyoshi Nakada
Instead of letting callers rescue the error always.
2020-04-17core_assertions.rb: fixed fd leak at timeoutNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/3039
2020-03-01show backtrace.Koichi Sasada
assert_nothing_raised doesn't show the backtrace if an exception is thrown in a block. This patch shows this backtrace.
2020-02-28respect --test-order=randomKoichi Sasada
Now --test-order=random is simply ignored. This patch respect this option. Notes: Merged: https://github.com/ruby/ruby/pull/2932
2020-02-11Expose assert_no_memory_leak for weakrefHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/2900
2020-02-11Expose assert_normal_exit for weakrefHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/2900
2020-02-07Stop auto runnerNobuyoshi Nakada
Auto runner should not run in forked processes in separated tests.
2020-02-07No crafted backtrace for SystemExitNobuyoshi Nakada
As SystemExit is ignored, it is just useless.
2020-02-06Fixed the output from separated test in parallel testNobuyoshi Nakada
Redirect the output of separated child process to `MiniTest::Unit.output`.
2020-02-06Add separated assertion countNobuyoshi Nakada
2020-02-05Fixed the output from separated test in parallel testNobuyoshi Nakada
To output to the STDOUT of the parent process according to the parallel test protocol, should send to the `MiniTest::Unit.output` instead of each own STDOUT.
2020-02-05Fixed FD leaksNobuyoshi Nakada
2020-02-05Get rid of nested string interpolations to be editor-friendlyNobuyoshi Nakada
2020-02-04just use STDOUTNARUSE, Yui
2020-02-04On Windows it cannot receive fd except 0..2NARUSE, Yui
2020-02-04assert_separately uses their own pipe instead of stdoutNARUSE, Yui
2019-12-12support gc_compact_checker on parallel test.Koichi Sasada
2019-12-03tool/lib/test/unit/parallel.rb: fail explicitly when failing to get ioYusuke Endoh
`(ulimit -n 30; make test-tool)` fails with unexplicit message: "undefined method `write' for nil:NilClass" due to lack of stdout. This change makes it explicit. [Bug #5577]
2019-12-01[ruby/fileutils] Fix test failure under ruby 2.4David Rodríguez
`Exception#full_message` is only defined on ruby 2.5.0 and above. https://github.com/ruby/fileutils/commit/a8968f41ed
2019-12-01[ruby/fileutils] Fix error printing test failureDavid Rodríguez
`exception_details` is not defined anywhere. This commit fixes the following test crash in ruby 2.4 ``` Error: test_assert_output_lines(TestFileUtils): NoMethodError: undefined method `exception_details' for #<TestFileUtils:0x00005556ef699178> ``` And replaces it with an actual test failure: ``` [Test::Unit::CoreAssertions::MiniTest::Assertion] exception expected, not #<NoMethodError: undefined method `full_message' for #<RuntimeError: ok> Did you mean? message>. ``` https://github.com/ruby/fileutils/commit/2f38ba6e82
2019-11-09Add debug printKazuhiro NISHIYAMA
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' ```
2019-10-31Try to run assert_output_unchanged with racc testsHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/2635
2019-10-23Catch syntax error even if fatalNobuyoshi Nakada
2019-10-16Revert "alias assert_raise_message for compatibility with test-unit"Nobuyoshi Nakada
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,
2019-10-16alias assert_raise_message for compatibility with test-unitNobuyoshi Nakada
2019-10-03[ruby/fileutils] improve the compatibility of minitestHiroshi SHIBATA
https://github.com/ruby/fileutils/commit/f16f5a0dd6
2019-10-02Enable checkers on parallel test.Koichi Sasada
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
2019-10-01expose assert_raise and assert_join_threadsHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/2516