Nobuyoshi Nakada
968d6df49f
Added --test-order=nosort option
...
Run tests in the order given in the command line.
2020-05-17 16:34:06 +09:00
Hiroshi SHIBATA
1fe2b7f41c
Workaround for Minitest5
2020-05-08 07:38:50 +09:00
Nobuyoshi Nakada
d1f50b9872
Initialize the class variable for Minitest::Unit.current_repeat_count
2020-04-23 10:44:27 +09:00
Hiroshi SHIBATA
e5db3da9d3
Migrate {assert,refute}_patch_exits for compatibility with Minitest5
2020-03-30 21:32:26 +09:00
Koichi Sasada
28399e4e0f
respect --test-order=random
...
Now --test-order=random is simply ignored. This patch respect
this option.
2020-02-28 17:44:23 +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
f9d314245b
Revert "srand($seed)
at the beginning of each test"
...
This reverts commit 7c1553e91d
.
It breaks some tests.
2020-02-27 02:45:09 +09:00
Koichi Sasada
7c1553e91d
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 02:29:57 +09:00
Koichi Sasada
20c1c24014
Minitest::Unit.current_repeat_count
...
This method returns loop counter for multi-run (0 start).
2020-01-28 18:13:58 +09:00
Yusuke Endoh
c02de30efb
tool/lib/leakchecker.rb: show the code location that allocated leaked fd
...
by using ObjectSpace.trace_object_allocations.
`make test-all LEAK_CHECKER_TRACE_OBJECT_ALLOCATION=true` will print not
only leaked fds but also where it was created.
2019-11-12 01:47:18 +09:00
Yusuke Endoh
1820aeeeb2
tool/lib/minitest/unit.rb: add "omit" as an alias to "skip"
...
According to rdoc, test-unit provides omit instead of skip.
This is a compatibility layer to make it work with both test-unit and
tool/lib/minitest.
2019-10-29 13:15:09 +09:00
Hiroshi SHIBATA
b39efb163d
Aliases capture_output to capture_io for test-unit compatiblity.
2019-08-08 17:19:23 +09:00
Koichi Sasada
cac44def0b
backtrace can be nil.
...
Surprisingly, on SystemStackError#backtrace can return nil.
2019-07-31 15:14:50 +09:00
Koichi Sasada
efac0a2384
Revert "add debug code"
...
This reverts commit e83ec207cd
.
2019-07-31 15:14:50 +09:00
Koichi Sasada
e83ec207cd
add debug code
2019-07-31 12:46:34 +09:00
Hiroshi SHIBATA
c3c0e3f5c9
Move to tool/lib from test/lib.
2019-07-02 07:59:54 +09:00