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
Takashi Kokubun
e1fee7f949
Rename RubyVM::MJIT to RubyVM::JIT
...
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 ]
2021-01-13 22:46:51 -08:00
Hiroshi SHIBATA
5dc786bf86
Move webrick library into internal test toolchain
2020-12-10 18:06:25 +09:00
Benoit Daloze
b4ec4a41c2
Guard all accesses to RubyVM::MJIT with defined?(RubyVM::MJIT) &&
...
* Otherwise those tests, etc cannot run on alternative Ruby implementations.
2020-12-04 16:45:54 +01:00
Hiroshi SHIBATA
1fe2b7f41c
Workaround for Minitest5
2020-05-08 07:38:50 +09:00
Koichi Sasada
6b30638bdb
MiniTest::Unit.options has default :seed
...
MiniTest::Unit (superclass of Test::Unit::Runner) does not has
default seed parameter, but assigned after initializing.
However some tests use MiniTest::Unit without setup of seed option
and it cases unexpected test failures. To solve this issue, add
default seed parameter 42.
2020-02-27 04:06:28 +09:00
Koichi Sasada
14f1790807
srand($seed)
at the beginning of each test
...
To avoid `srand(0)` effect in the other tests, call `srand($seed)`
at the beginning of each test (setup).
[Feature #16655 ]
2020-02-27 03:47:41 +09:00
Koichi Sasada
79eb5e1aca
call GC.compact after each test.
...
RUBY_TEST_GC_COMPACT=1 enables GC.compact checker which calls
GC.compact after each test.
2019-12-12 03:32:12 +09:00
Alan Wu
df76f2c577
Make TracePoint.stat a singleton method again ( #2726 )
...
[Bug #16399 ]
2019-12-04 21:02:21 -05:00
Yusuke Endoh
409e4ab740
tool/lib/test/unit/parallel.rb: fail explicitly when failing to get io
...
`(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-03 17:26:12 +09:00
Koichi Sasada
e2a45cb984
use builtin for TracePoint.
...
Define TracePoint in trace_point.rb and use __builtin_ syntax.
2019-11-08 09:09:29 +09:00
Koichi Sasada
9759e3c9f0
fix assertion number.
...
On parallel test, there are additional tests because of implicit
checkers which are enabled on 84cbce3d88
.
2019-10-02 17:19:14 +09:00
Koichi Sasada
84cbce3d88
Enable checkers on parallel test.
...
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-02 16:23:00 +09:00
Nobuyoshi Nakada
7e33f324e1
Get rid of failures about coverage
...
Run test suites explicitly instead of auto-running, to get rid of
failures when simplecov is not installed but COVERAGE is set.
2019-07-25 20:57:32 +09:00
Nobuyoshi Nakada
8e53d18e67
Separated tool/test/runner.rb and test/runner.rb
...
As `make test-tool` does not use gems, and no Rubygems stuffs is
needed, so moved such things to test/runner.rb. Also no longer
nees `--test-target-dir` option.
2019-07-25 16:57:38 +09:00
Nobuyoshi Nakada
a850be68a5
Moved NoMemoryError hook to Test::Unit::AutoRunner
2019-07-25 08:42:16 +09:00
Nobuyoshi Nakada
dc954cbb75
@@project_dir in Gem::TestCase is no longer used
2019-07-24 20:08:40 +09:00
Nobuyoshi Nakada
d1c2b19698
Fixed exception message
2019-07-22 13:51:14 +09:00
Nobuyoshi Nakada
f6461fa890
Only the first argument can be --test-target-dir option
...
Raise the proper exception when that option is not given but
non-option argument is.
2019-07-22 13:07:03 +09:00
Yusuke Endoh
24712eeec3
tool/test/runner.rb: support --test-target-dir option
...
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.
2019-07-21 19:19:08 +09:00
Hiroshi SHIBATA
ac6d137157
Added test-tool target for the test suite of tool/test files.
2019-07-15 11:16:29 +09:00
Hiroshi SHIBATA
41c5f9a166
Put jisx0208.rb to under the library directory.
2019-07-15 11:16:29 +09:00
Nobuyoshi Nakada
83fed5a4ed
Adjust minitest file path
2019-07-02 09:37:18 +09:00
Nobuyoshi Nakada
5aed62454c
Adjust minitest file path
2019-07-02 09:26:11 +09:00
Hiroshi SHIBATA
c68781e918
Split test files for test-framework that are test-unit and minitest to tool direcotry.
2019-07-02 07:59:54 +09:00
kazu
58a4153439
tool/test/test_jisx0208.rb: Use require_relative
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-02-07 06:56:13 +00:00
muraken
62f8df2d3c
* enc/trans/EMOJI/*.src, enc/trans/emoji*, enc/x-emoji.c, test/ruby/enc/test_emoji.rb, tool/enc-emoji-citrus-gen.rb, tool/enc-emoji4unicode.rb, tool/jisx0208.rb, tool/test/test_jisx0208.rb: new encodings to support emoji charsets, which are used by Japanese mobile phones [ruby-dev:40528]. Thanks Yoji Shidara for a lot of contribution.
...
* tool/transcode-tblgen.rb: modified for enc-emoji4unicode.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-09 09:15:42 +00:00