Commit graph

76 commits

Author SHA1 Message Date
Takashi Kokubun
2e875549a9 s/MJIT/RJIT/ 2023-03-06 23:44:01 -08:00
Nobuyoshi Nakada
6b46057e5c
Expand the test directory to real path
When the test source directory path contains symbolic links, that
directory might be placed earlier in the result of
`IRB::InputCompletor.retrieve_gem_and_system_load_path`, than other
directories in the source tree that are expanded to the real path.  In
that case, the test file in "csv" under the test directory of csv gem
instead of the library path will be the first candidate, in
`TestIRB::TestCompletion#test_complete_require_library_name_first`.

```
<"'csv"> expected but was
<"'csv/helper">.
```
2023-03-03 15:30:02 +09:00
Nobuyoshi Nakada
398aaed2f0
Fix the case trailer without newline
cf0b413ef8
2022-12-22 00:34:21 +09:00
Nobuyoshi Nakada
d752cf7601 Use class methods of File over Kernel.open and IO.read 2022-12-01 02:28:49 +09:00
Nobuyoshi Nakada
93e87c0217 Fix the case of multiple trailers 2022-11-28 16:30:40 +09:00
Nobuyoshi Nakada
5a171ee4c0 Add tests for sync_default_gems.rb 2022-11-28 16:30:40 +09:00
Nobuyoshi Nakada
d903e76726 Allow strings in assert_pattern_list 2022-08-19 01:28:31 +09:00
Nobuyoshi Nakada
7c1ed47097
Add tests for assert_pattern_list 2022-08-18 23:38:56 +09:00
Nobuyoshi Nakada
56b45e8c8e Let testunit use omit or pend instead of skip 2022-01-16 21:35:09 +09:00
Takashi Kokubun
1a63468831
Prepare for removing RubyVM::JIT (#5262) 2021-12-13 23:07:46 -08:00
Nobuyoshi Nakada
cc33d07f46
Disable experimental warnings in test/runner.rb 2021-11-10 17:42:09 +09:00
Samuel Williams
81d0ce7e97 Mark IO::Buffer as experimental. 2021-11-10 19:21:05 +13:00
Nobuyoshi Nakada
c7eac1be51
Retry hung up tests verbosely 2021-10-17 22:40:31 +09:00
Nobuyoshi Nakada
13716898df Retry hung tests after parallel runs 2021-10-17 16:33:58 +09:00
Nobuyoshi Nakada
5de6e25144
Replace unpack with unpack1 2021-10-17 00:48:45 +09:00
Nobuyoshi Nakada
855db8e9ce
Use __dir__ 2021-10-15 19:42:39 +09:00
Nobuyoshi Nakada
c4570acc86
Refactor ordering of tests
* Split the sorting types into classes.
* Apply the same sorting to method sorting under the parallel
  test.
2021-10-04 20:46:47 +09:00
Nobuyoshi Nakada
34d6720fee
Prohibit test method redefinition 2021-09-17 08:54:18 +09:00
Hiroshi SHIBATA
43f49b2d1c
Fixup 455978cd13 2021-09-13 21:15:36 +09:00
Hiroshi SHIBATA
ec6f04c092
Use capture_output instead of capture_io 2021-09-13 21:14:42 +09:00
Hiroshi SHIBATA
8d0315a2bb
Removed unsed assertions for rubygems 2021-09-11 21:05:15 +09:00
Hiroshi SHIBATA
64e056a4c5
Drop to Ruby 1.8 related code 2021-09-11 18:10:15 +09:00
Hiroshi SHIBATA
a13ee1f33c
Removed rubinius support from test suite 2021-09-11 18:10:15 +09:00
Hiroshi SHIBATA
aebd0a873e
Removed maglev related code because it's not active status now 2021-09-11 18:10:15 +09:00
Hiroshi SHIBATA
d9025ee2b5
fixup f73f9e1f89 2021-09-11 15:29:16 +09:00
Hiroshi SHIBATA
d05383812a Replace Test::Assertion and Test::Skip to Test::Unit::AssertionFailedError and Test::Unit::PendedError 2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
151a1cd45e Fixed inconsistent require order for assertions and core_assertions 2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
d7f0b41c7b Surpressing the noisy messages 2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
980f61935f Temporary pend unknown behavior of parallel tests 2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
566bbc2421 pend non-supported feature 2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
bc1c09c6e8 More fixed assertion message tests 2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
1c4f0f1eee We prepared Test::Unit::TestCase in default value 2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
0fda70e3a3 We don't want to consistent assert and refute assertions 2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
47928204b7 Fixed compatible assertion message format 2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
0a5844cbdd Removed output assertion tests. Because our default runner is replaced by custom output 2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
6b5400ccde Use msg format with test-unit 2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
905c04d1e6 Use Test namespace instead of MiniTest in test_parallel.rb 2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
9ff614bc13 Use Test::Unit::Assertions migrated with MiniTest::Assertions 2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
ad979a5e00 Replace Test::Unit to Test::Unit::Runner migrated with MiniTest::Unit 2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
6d206352c3 Use assert_raise instead of assert_raises 2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
d5e94bf5db Replace MiniTest to Test 2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
8aaa40e55f Move test of minitest to testunit 2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
78ec066347 Use CoreAssertions instead of Assertions 2021-09-11 08:48:03 +09:00
Koichi Sasada
228b3e43be check GC.enable'd status
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.
2021-08-05 17:11:50 +09:00
Nobuyoshi Nakada
5f2987d6c2
Fix relative paths from core_assertions.rb 2021-08-04 20:39:12 +09:00
Hiroshi SHIBATA
adcbae8d49
Removed minitest/mock 2021-05-19 14:24:01 +09:00
Hiroshi SHIBATA
9bd79c2cef
Removed minitest/benchmark 2021-05-18 17:31:43 +09:00
Hiroshi SHIBATA
5a0b89de32
Removed minitest/autorun 2021-05-18 17:31:42 +09:00
Hiroshi SHIBATA
8ab2afb20b
Use Test::Unit instead of Minitest::Unit 2021-05-18 17:31:42 +09:00
Takashi Kokubun
cc1ea6e023
Run nmake check on Actions (#4487)
* Run nmake check on Actions

* Skip tests not working in mswin GitHub Actions

* Override TEMP

* Revert "Skip tests not working in mswin GitHub Actions"

This reverts commit 544d2575fc.

* Revert "Revert "Skip tests not working in mswin GitHub Actions""

This reverts commit e1f8ad7862.

* Fix timeouts

* Skip some more broken tests

* Update windows.yml

* Add a guard for rbasic_spec

* Revert "Update windows.yml"

This reverts commit bc9694b6b3.

* Skip the ensure clause

* Simplify the ensure
2021-05-11 15:18:44 -07:00