Hiroshi SHIBATA
a450e9304d
Extract Benchmark.measure on assert_cpu_usage_low
2025-01-10 13:27:16 +09:00
Nobuyoshi Nakada
e884d65094
Ignore blocks to Test::Unit::Assertions#pend
silently
...
Although `pend` in test-unit gem expects the block does not pass if it
is given, our `pend` should ignore the block silently as same as it
just skips the test with no message by default. Add an unused
parameter, to suppress the warning for the block to be ignored.
2024-09-04 14:49:25 +09:00
Kevin Newton
b4b39a6199
[PRISM] Enable test_methoddef_endless_command
2024-05-07 14:24:31 -04:00
Nobuyoshi Nakada
f159bbd17d
Prevent accidental use of assert_raises
2022-06-25 19:09:06 +09:00
Hiroshi SHIBATA
c506ddac6c
Added assert_true and assert_false same as test-unit gem
2022-04-20 14:13:10 +09:00
Hiroshi SHIBATA
3515867381
Removed skip alias in test suite
2022-01-17 10:39:24 +09:00
Nobuyoshi Nakada
d1b8544b4d
Remove Test::Unit::Assertions#exception_details
...
Never used since fa0f3eff22
.
2021-10-18 17:36:06 +09:00
Hiroshi SHIBATA
ec6f04c092
Use capture_output instead of capture_io
2021-09-13 21:14:42 +09:00
Hiroshi SHIBATA
be04006c7d
Rename capture_io to capture_output and deprecate to use capture_io
2021-09-13 20:56:34 +09:00
Hiroshi SHIBATA
455978cd13
Removed unused mu_pp method
2021-09-13 20:41:03 +09:00
Hiroshi SHIBATA
f5993331b2
Renamed skip to pend and prepared to deprecate skip method
2021-09-13 19:09:24 +09:00
Hiroshi SHIBATA
8d0315a2bb
Removed unsed assertions for rubygems
2021-09-11 21:05:15 +09:00
Hiroshi SHIBATA
b178929469
Fixed uninitialized constant Test::Unit::Assertions::MIN_MEASURABLE.
...
I'm not sure why it's failed under the chkbuild and rubyci.
20210911
T000007Z.fail.html.gz
2021-09-11 11:21:37 +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
9b026ca39b
Integrate Minitest to Test
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
8ec187c091
Replace MiniTest::Unit to Test::Unit::Runner
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
df86d78a26
Use self class for diff
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
871e7b5f55
Use MiniTest
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
93c44c4ed2
Move constants under the TestCase
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
1bec4f251d
Move MiniTest::Assertions to Test::Unit::Assertions
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
ecfbf1df33
Use Test::Unit::PendedError instead of MiniTest::Skip for test-unit migration
2021-09-06 19:33:56 +09:00
Hiroshi SHIBATA
544e37f184
Simplify conditions for CoreAssertion initialization
2021-09-06 19:31:24 +09:00
Nobuyoshi Nakada
690385014a
Move core_assertions.rb from test/unit
...
This file contains extended assertions for ruby core which do not
belong to test/unit.
2021-07-11 19:56:53 +09:00
Hiroshi SHIBATA
6e7e9a80ad
Expose assert_all? for ruby/csv repo
2021-06-01 19:38:05 +09:00
Nobuyoshi Nakada
fb54574393
Pass keyword options in assert_syntax_error
2020-12-24 01:24:30 +09:00
Hiroshi SHIBATA
533bca57e0
Expose assert, assert_respond_to and assert_not_respond_to for default gems.
2020-10-08 16:40:46 +09:00
Hiroshi SHIBATA
59ded36c60
Expose assert_pattern_list
for drb test with test-unit gem.
2020-07-02 20:53:42 +09:00
Hiroshi SHIBATA
9b2e671944
Expose assert_no_memory_leak for weakref
2020-02-11 13:29:23 +09:00
Hiroshi SHIBATA
a5d7b8e13d
Expose assert_normal_exit for weakref
2020-02-11 13:29:23 +09:00
Nobuyoshi Nakada
601f1fb456
Catch syntax error even if fatal
2019-10-23 02:05:28 +09:00
Hiroshi SHIBATA
15606963de
expose assert_raise and assert_join_threads
2019-10-01 22:19:18 +09:00
SHIBATA Hiroshi
216d230080
Move some assertions to CoreAssertions. ( #2354 )
...
They are used by default gems like forwardable.
* assert_raise_with_message
* assert_warning
* assert_warn
2019-08-14 07:44:26 +09:00
Hiroshi SHIBATA
d569d721f9
Move assert_ruby_status and assert_throw to CoreAssertions for default gems.
2019-08-03 22:17:45 +09:00
Hiroshi SHIBATA
08b340d2f6
Separate the assertions of ruby core tests from test/unit/assertions.
2019-07-15 09:40:22 +09:00
Hiroshi SHIBATA
c3c0e3f5c9
Move to tool/lib from test/lib.
2019-07-02 07:59:54 +09:00