nobu
eecfa1fc7a
incompatible encoding workaround
...
* test/lib/minitest/unit.rb (puke): workaround incompatible
encoding error messages.
* test/lib/test/unit/assertions.rb (AllFailures.message): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-02-05 04:45:10 +00:00
naruse
3e92b635fb
Add frozen_string_literal: false for all files
...
When you change this to true, you may need to add more tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-16 05:07:31 +00:00
nobu
49243b9944
unit.rb: no insult method
...
* test/lib/minitest/unit.rb (i_suck_and_my_tests_are_order_dependent!):
remove.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-04 02:04:31 +00:00
nobu
8a57298c09
unit.rb: no UNDEFINED
...
* test/lib/minitest/unit.rb (UNDEFINED): remove.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-04 02:04:26 +00:00
drbrain
3908d5d330
* lib/rake: Update to rake 10.4.0
...
* test/rake: ditto.
* NEWS: ditto.
* test/lib/minitest/unit.rb: Add compatibility shim for minitest 5.
This only provides minitest 5 unit test naming compatibility.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-25 07:03:36 +00:00
nobu
98a2dfe7f6
minitest/unit.rb: flush messages
...
* test/lib/minitest/unit.rb (MiniTest::Unit#_run_suite): flush
messages after each tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-23 06:23:05 +00:00
akr
6c6f9b19b4
* test/lib/leakchecker.rb: Leak checker extracted from
...
test/lib/minitest/unit.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-31 13:31:32 +00:00
akr
40ec552861
* test/lib/minitest/unit.rb: Check Tempfile leaks for each test method
...
again.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-30 23:32:19 +00:00
akr
283e5d5aab
* test/lib/minitest/unit.rb (check_fd_leak): Sort the inspected
...
objects list for a FD.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-30 12:01:09 +00:00
akr
e03e2b95a0
* test/lib/minitest/unit.rb (check_fd_leak): Try GC to delete leaked
...
FDs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-30 09:08:23 +00:00
nobu
bb1fb1167e
minitest/unit.rb: defer requiring -test-
...
* test/lib/minitest/unit.rb (find_fds): defer requiring a library
under "-test-" until needed, or can't work in other (installed)
ruby. grep doesn't need separated map.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-30 06:27:23 +00:00
akr
83ead3c4a7
* ext/-test-/dir: Dir#fileno implemented.
...
* test/lib/minitest/unit.rb (find_fds): Don't return the fd used to
scan /proc/$$/fd.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-29 22:28:47 +00:00
akr
b519ce9a8a
* test/lib/minitest/unit.rb (capture_subprocess_io): Close fds.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-29 13:26:02 +00:00
akr
9b612d382d
* test/lib/minitest/unit.rb: Use Tempfile#close! instead of
...
Tempfile#unlink to close file descriptors.
* test/openssl/test_config.rb: Ditto.
* test/ruby/test_io.rb: Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 15:49:13 +00:00
akr
1c35277c2b
* io.c (rb_io_autoclose_p): Don't raise on frozen IO.
...
* test/lib/minitest/unit.rb: IO#autoclose? may raise IOError.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 10:09:55 +00:00
akr
dbd239a7aa
* test/lib/minitest/unit.rb: Show leaked file descriptors.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 03:24:52 +00:00
nobu
fd372dc8a2
minitest/unit.rb: fix leaking tempfile
...
* test/lib/minitest/unit.rb (capture_subprocess_io): opened files
can not be unlinked on Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-26 03:42:27 +00:00
akr
1902f5fa25
* test/lib/minitest/unit.rb: Show Finished threads line-by-line.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-25 23:00:04 +00:00
akr
c8660d8966
Show leaked threads line-by-line.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-25 16:16:38 +00:00
akr
b5d3b55bb7
* test/lib/minitest/unit.rb: Show leaked tempfiles line-by-line.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-25 16:03:23 +00:00
akr
8559c4c125
* test/lib/minitest/unit.rb (MiniTest::Assertions#diff): Remove
...
tempfiles.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-25 14:16:02 +00:00
akr
6f2b1d6e82
* test/lib/minitest/unit.rb: Check tempfile leak for each test class.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-25 13:44:05 +00:00
akr
540ffb3abd
* test/lib/minitest/unit.rb: Less ObjectSpace.each_object(Tempfile)
...
invocation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-25 08:15:08 +00:00
akr
70c15b19fa
* test/lib/minitest/unit.rb: Use Thread.list instead of
...
ObjectSpace.each_object(Thread).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-25 07:58:02 +00:00
akr
36c9605a6e
* test/lib/minitest/unit.rb: Sort leaked threads and tempfiles.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-25 03:34:27 +00:00
akr
0be4ec01cd
* test/lib/minitest/unit.rb: Show leakes threads and tempfiles.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-25 00:41:18 +00:00
hsbt
ff9c54a32d
* test/lib/minitest/.document: removed unused configuration. [ci skip]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-24 13:29:40 +00:00
akr
1e2374f1e9
* test/lib/minitest/spec.rb: Unused file removed.
...
* test/lib/minitest/autorun.rb: Don't require minitest/spec.
* test/lib/minitest/benchmark.rb: Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-24 10:20:41 +00:00
akr
36f3ee6dc8
* test/lib/minitest/unit.rb (parallelize_me!): Removed.
...
This fixes the line-by-line structure of the test result in verbose
mode. [ruby-core:54905]
* test/lib/minitest/parallel_each.rb: Removed.
* test/minitest/test_minitest_mock.rb: Don't call parallelize_me!.
* test/minitest/test_minitest_spec.rb: Ditto.
* test/minitest/test_minitest_unit.rb: Ditto.
Tests for parallel feature removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-24 07:09:29 +00:00
akr
e30e8702a3
* test/lib/minitest/hell.rb: Unused file removed.
...
* test/lib/minitest/pride.rb: Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-24 06:29:23 +00:00
akr
bdf98fc627
* test/lib/minitest: Remove comments not appropriate now.
...
* test/minitest: Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-24 06:01:51 +00:00
hsbt
f8c6a5dc02
* test/runner.rb: remove dependency test-unit and minitest
...
from stdlib when running with test-all.
[Feature #9711 ][ruby-core:61890]
* test/testunit/*.rb: ditto.
* test/lib: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-17 06:26:51 +00:00