summaryrefslogtreecommitdiff
path: root/tool/test/testunit
AgeCommit message (Collapse)Author
3 daysCount assertions in child processesNobuyoshi Nakada
Fix up GH-15785.
2025-12-31Skip the hang-up test on WindowsNobuyoshi Nakada
2025-09-17Unset RUBY_CRASH_REPORT in tests that crash on purposeAlan Wu
2025-06-18Follow up testunitNobuyoshi Nakada
* Update method names. * Sort shuffled tests by names. Notes: Merged: https://github.com/ruby/ruby/pull/13640
2025-06-18Revert "Temporary pend unknown behavior of parallel tests"Nobuyoshi Nakada
This reverts commit 980f61935f6e8331e0908dc963e60fb727ab4d8c, which seems no longer needed. Notes: Merged: https://github.com/ruby/ruby/pull/13640
2025-03-28Remove test_retry_workersYusuke Endoh
The test fails randomly for unknown reason. https://github.com/ruby/ruby/actions/runs/14121674932/job/39562945096?pr=12993 ``` 1) Error: TestParallel::TestParallel#test_retry_workers: Test::Unit::ProxyError: execution expired (start: 2025-03-28 04:04:10 +0000, end: 2025-03-28 04:05:50 +0000) /home/runner/work/ruby/ruby/src/tool/test/testunit/test_parallel.rb:16:in 'TestParallel.timeout' /home/runner/work/ruby/ruby/src/tool/test/testunit/test_parallel.rb:225:in 'TestParallel::TestParallel#test_retry_workers' ``` Maybe the workers do not respond "quit" request. We no longer use the retry mechanism, so just remove the test. Notes: Merged: https://github.com/ruby/ruby/pull/12993
2025-03-28Try avoiding "invalid byte sequence in UTF-8"Yusuke Endoh
Notes: Merged: https://github.com/ruby/ruby/pull/12993
2025-03-28Report the actual time wated for timeout errors in TestParallelYusuke Endoh
Notes: Merged: https://github.com/ruby/ruby/pull/12993
2025-02-27Increase timeout in TestParallel testing to reduce flaky failures (#12822)Naoto Ono
Currently, the following tests are flaky and failing intermittently, so I'm going to increase the timeout to improve stability. ``` 1) Failure: TestParallel::TestParallel#test_hungup [/Users/runner/work/ruby/ruby/src/tool/lib/zombie_hunter.rb:6]: Expected [[42009, #<Process::Status: pid 42009 SIGKILL (signal 9)>]] to be empty. 2) Error: TestParallel::TestParallel#test_hungup: Test::Unit::ProxyError: execution expired /Users/runner/work/ruby/ruby/src/lib/timeout.rb:40:in 'Timeout::Error.handle_timeout' /Users/runner/work/ruby/ruby/src/lib/timeout.rb:194:in 'Timeout.timeout' /Users/runner/work/ruby/ruby/src/tool/test/testunit/test_parallel.rb:210:in 'TestParallel::TestParallel#test_hungup' ``` https://github.com/ruby/ruby/actions/runs/13560087551/job/37901506230#step:14:105 ``` 1) Error: TestParallel::TestParallel#test_retry_workers: Test::Unit::ProxyError: execution expired /Users/runner/work/ruby/ruby/src/lib/timeout.rb:40:in 'Timeout::Error.handle_timeout' /Users/runner/work/ruby/ruby/src/lib/timeout.rb:194:in 'Timeout.timeout' /Users/runner/work/ruby/ruby/src/tool/test/testunit/test_parallel.rb:217:in 'TestParallel::TestParallel#test_retry_workers' ``` https://github.com/ruby/ruby/actions/runs/13559151505/job/37899041580#step:14:106 Notes: Merged-By: ono-max <onoto1998@gmail.com>
2025-02-27[Misc #20661] Stop retrying tests in `make test-all` command by default (#11271)Naoto Ono
[Misc #20661] Stop retrying tests in make test-all command by default Notes: Merged-By: ono-max <onoto1998@gmail.com>
2025-02-13[Feature #21116] Extract RJIT as a third-party gemNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/12740
2025-01-24Add `Test::Unit::CoreAssertions#assert_raise_kind_of`Nobuyoshi Nakada
Similar to `Test::Unit::assert_raise`, but allows sub classes too. Notes: Merged: https://github.com/ruby/ruby/pull/12625
2025-01-24Add test for `Test::Unit::CoreAssertions#assert_raise_with_message`Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/12625
2024-10-29Fix TestParallel#test_hungup when RUBY_TEST_TIMEOUT_SCALE is setPeter Zhu
When RUBY_TEST_TIMEOUT_SCALE is set, the timeout increases by the multiple specified. However, the test in test4test_hungup.rb does not scale, so if RUBY_TEST_TIMEOUT_SCALE is a large number like 10, then the test will not time out causing the tests test to fail. Notes: Merged: https://github.com/ruby/ruby/pull/11959
2024-09-12Accept version rangeNobuyoshi Nakada
Single `Integer` argument means an exact match to the major version. Notes: Merged: https://github.com/ruby/ruby/pull/11604
2024-08-06Dump all-thread backtraces when test parallel worker exceeds time limitYusuke Endoh
Notes: Merged: https://github.com/ruby/ruby/pull/11315
2024-07-08Move the file location of launchable.rbNaoto Ono
2024-07-08Integrate Launchable into make btestNaoto Ono
2024-05-08Show the caller location of assertion methodsNobuyoshi Nakada
Not only defined in `Test::Unit` or `CoreAssertions`, also show the caller location of assertion methods defined in the current class or ancestors.
2024-04-15show warning for unused blockKoichi Sasada
With verbopse mode (-w), the interpreter shows a warning if a block is passed to a method which does not use the given block. Warning on: * the invoked method is written in C * the invoked method is not `initialize` * not invoked with `super` * the first time on the call-site with the invoked method (`obj.foo{}` will be warned once if `foo` is same method) [Feature #15554] `Primitive.attr! :use_block` is introduced to declare that primitive functions (written in C) will use passed block. For minitest, test needs some tweak, so use https://github.com/minitest/minitest/commit/ea9caafc0754b1d6236a490d59e624b53209734a for `test-bundled-gems`.
2024-04-03Launchable: Add lineNumber fieldNaoto Ono
2024-04-02Launchable: Refactor the logic of JsonStreamWriterNaoto Ono
2024-03-28Make TestParallel#test_retry_workers consider RUBY_TEST_TIMEOUT_SCALEKJ Tsanaktsidis
This test currently fails if RUBY_TEST_TIMEOUT_SCALE is set, because the worker timeout is scaled out but the duration of the sleep does not; thus, the test-test-case does not timeout when it should.
2023-10-26Fix test failure with __runner_options__ renamingHiroshi SHIBATA
2023-10-26tool test/unit/testcase: rename vars @passed, @@currentlukeg
to @__passed__, @@__current__. @passed is redefined in a few test suites, and this could lead to bugs. Also rename @options (Runner#options) to @__runner_options__, which is only used in make test-tool anyway.
2023-10-18Handle `Timeout::Error` reported from workersNobuyoshi Nakada
2023-10-18Manage parallel test workers after timeoutNobuyoshi Nakada
2023-10-18Add `jobs` optional keyword argumentNobuyoshi Nakada
2023-06-03Exit with a failure if any test files failed to loadNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/7897
2023-03-06s/MJIT/RJIT/Takashi Kokubun
Notes: Merged: https://github.com/ruby/ruby/pull/7462
2022-08-19Allow strings in assert_pattern_listNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/6252
2022-08-18Add tests for assert_pattern_listNobuyoshi Nakada
2022-01-16Let testunit use omit or pend instead of skipNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/5453
2021-12-13Prepare for removing RubyVM::JIT (#5262)Takashi Kokubun
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2021-10-17Retry hung up tests verboselyNobuyoshi Nakada
2021-10-17Retry hung tests after parallel runsNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/4976
2021-10-17Replace unpack with unpack1Nobuyoshi Nakada
2021-10-15Use `__dir__`Nobuyoshi Nakada
2021-10-04Refactor ordering of testsNobuyoshi Nakada
* Split the sorting types into classes. * Apply the same sorting to method sorting under the parallel test. Notes: Merged: https://github.com/ruby/ruby/pull/4862
2021-09-17Prohibit test method redefinitionNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/4854
2021-09-13Fixup 455978cd133f27fab9e2bfa4301efd3b7c7d0462Hiroshi SHIBATA
2021-09-13Use capture_output instead of capture_ioHiroshi SHIBATA
2021-09-11Removed unsed assertions for rubygemsHiroshi SHIBATA
2021-09-11Drop to Ruby 1.8 related codeHiroshi SHIBATA
2021-09-11Removed rubinius support from test suiteHiroshi SHIBATA
2021-09-11Removed maglev related code because it's not active status nowHiroshi SHIBATA
2021-09-11fixup f73f9e1f893409d8b7b42ff5fbda104fdd277cbaHiroshi SHIBATA
2021-09-11Replace Test::Assertion and Test::Skip to Test::Unit::AssertionFailedError ↵Hiroshi SHIBATA
and Test::Unit::PendedError Notes: Merged: https://github.com/ruby/ruby/pull/4813
2021-09-11Surpressing the noisy messagesHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/4813
2021-09-11Temporary pend unknown behavior of parallel testsHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/4813