test-unit 3.5.7 → 3.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/Rakefile +12 -6
  4. data/bin/test-unit +5 -0
  5. data/doc/text/getting-started.md +24 -150
  6. data/doc/text/how-to.md +4 -4
  7. data/doc/text/news.md +218 -0
  8. data/lib/test/unit/assertions.rb +8 -8
  9. data/lib/test/unit/auto-runner-loader.rb +2 -2
  10. data/lib/test/unit/autorunner.rb +77 -13
  11. data/lib/test/unit/collector/descendant.rb +1 -1
  12. data/lib/test/unit/collector/dir.rb +2 -2
  13. data/lib/test/unit/collector/load.rb +8 -6
  14. data/lib/test/unit/collector/objectspace.rb +1 -1
  15. data/lib/test/unit/collector/xml.rb +1 -1
  16. data/lib/test/unit/color-scheme.rb +1 -1
  17. data/lib/test/unit/data.rb +1 -1
  18. data/lib/test/unit/error.rb +1 -1
  19. data/lib/test/unit/failure.rb +1 -1
  20. data/lib/test/unit/fault-location-detector.rb +6 -2
  21. data/lib/test/unit/notification.rb +1 -1
  22. data/lib/test/unit/omission.rb +1 -1
  23. data/lib/test/unit/pending.rb +1 -1
  24. data/lib/test/unit/priority.rb +1 -1
  25. data/lib/test/unit/runner/console.rb +23 -4
  26. data/lib/test/unit/runner/emacs.rb +1 -1
  27. data/lib/test/unit/runner/xml.rb +1 -1
  28. data/lib/test/unit/sub-test-result.rb +59 -0
  29. data/lib/test/unit/test-run-context.rb +16 -0
  30. data/lib/test/unit/test-suite-creator.rb +1 -1
  31. data/lib/test/unit/test-suite-runner.rb +130 -0
  32. data/lib/test/unit/test-suite-thread-runner.rb +84 -0
  33. data/lib/test/unit/test-thread-run-context.rb +20 -0
  34. data/lib/test/unit/testcase.rb +65 -20
  35. data/lib/test/unit/testresult.rb +9 -9
  36. data/lib/test/unit/testsuite.rb +22 -85
  37. data/lib/test/unit/ui/console/testrunner.rb +165 -36
  38. data/lib/test/unit/ui/emacs/testrunner.rb +1 -1
  39. data/lib/test/unit/ui/testrunner.rb +2 -2
  40. data/lib/test/unit/ui/testrunnermediator.rb +16 -11
  41. data/lib/test/unit/ui/xml/testrunner.rb +3 -2
  42. data/lib/test/unit/util/observable.rb +4 -8
  43. data/lib/test/unit/version.rb +1 -1
  44. data/lib/test/unit.rb +6 -6
  45. data/lib/test-unit.rb +2 -2
  46. metadata +12 -78
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 59ba2bbe00e50cbe8fddafde4fcab620690213d5bca53fe5e154f42f5502cd6b
4
- data.tar.gz: 5ec10a45c78af72d40b2d7439dafef5296b75fa46d89b9f1889338d2dc224829
3
+ metadata.gz: a8a9bb306ea3324be8482cb2ed868697810c9c6c60a77be17430e941be3b3c96
4
+ data.tar.gz: a180a008c16229d6b02d46165f041a22550a427f5075e996c98687286ae25363
5
5
  SHA512:
6
- metadata.gz: b638f460ef3ce8328bb51ed7e3cdf4a79bf36d864fd0ba37cbc4c5e4c43922e1847ee25c1cbb29dde6aa3f1cc38daabe760790f4c65300e4588037641dbe121f
7
- data.tar.gz: 71827e75e9bb25f5569458d3b7fa5edb9cdf3f1693c4ac988b670a3c55cd64bade2f046c966ac76293d76d1e26422afce45bf1ccbf9346086498083e6ca915e2
6
+ metadata.gz: 42e6d7ec6118d08c8911074c2e8d45c1bbbbad471c96d22097482e7736c7044dcc1f67cf0cf3e39e2670204085d53d1d9945dc5bd3983975de647e525159e7fc
7
+ data.tar.gz: 3d80d7aa02f75c5a1f958e4c92fa508ba54205100eae53565f79cb22f3c0b464009896d0c2cc457dbef478158d693d867b263fc1f76f9adf2ddd6da88f47b61e
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![Gem Version](https://badge.fury.io/rb/test-unit.png)](http://badge.fury.io/rb/test-unit)
4
4
  [![Build Status for Ruby 2.1+](https://github.com/test-unit/test-unit/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/test-unit/test-unit/actions/workflows/test.yml?query=branch%3Amaster+)
5
5
 
6
- * http://test-unit.github.io/
6
+ * https://test-unit.github.io/
7
7
  * https://github.com/test-unit/test-unit
8
8
 
9
9
  ## Description
@@ -19,7 +19,7 @@ test-unit ships as part of Ruby as a bundled gem. To check which version is incl
19
19
  It's only necessary to install the gem if you need a newer version.
20
20
 
21
21
  test-unit is the original Ruby unit testing library, and is still active.
22
- It is one of two unit testing libraries bundled with Ruby, the other being [minitest](https://github.com/seattlerb/minitest).
22
+ It is one of two unit testing libraries bundled with Ruby, the other being [minitest](https://github.com/minitest/minitest).
23
23
 
24
24
  When deciding which to use, consider:
25
25
 
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  # -*- ruby -*-
2
2
  #
3
- # Copyright (C) 2008-2017 Kouhei Sutou <kou@clear-code.com>
3
+ # Copyright (C) 2008-2024 Sutou Kouhei <kou@clear-code.com>
4
4
 
5
5
  Encoding.default_internal = "UTF-8" if defined?(Encoding.default_internal)
6
6
 
@@ -48,12 +48,8 @@ Packnga::ReleaseTask.new(spec) do |task|
48
48
  task.index_html_dir = test_unit_github_io_dir
49
49
  end
50
50
 
51
- def rake(*arguments)
52
- ruby($0, *arguments)
53
- end
54
-
55
51
  task :test do
56
- ruby("test/run-test.rb")
52
+ ruby("test/run.rb")
57
53
  end
58
54
 
59
55
  namespace :doc do
@@ -66,3 +62,13 @@ namespace :doc do
66
62
  File.write("doc/text/news.md", applied_permalink)
67
63
  end
68
64
  end
65
+
66
+ release_task = Rake.application["release"]
67
+ # We use Trusted Publishing.
68
+ release_task.prerequisites.delete("build")
69
+ release_task.prerequisites.delete("release:rubygem_push")
70
+ release_task_comment = release_task.comment
71
+ if release_task_comment
72
+ release_task.clear_comments
73
+ release_task.comment = release_task_comment.gsub(/ and build.*$/, "")
74
+ end
data/bin/test-unit ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "test/unit"
4
+
5
+ exit(Test::Unit::AutoRunner.run(true))
@@ -22,178 +22,52 @@ You will find the following lines.
22
22
  !!!plain
23
23
  gem list
24
24
  ...
25
- bundler (1.14.6)
25
+ bundler (2.6.3, default: 2.6.2)
26
26
  ...
27
- test-unit (3.2.3)
27
+ test-unit (3.6.8, 3.6.7)
28
28
  ~~~
29
29
 
30
30
  ## 3. Create gem template.
31
31
 
32
32
  Next, create a gem template using `bundler` command.
33
33
  This command generates package skeleton with a testing framework.
34
- However, this command can't generate test templates for `test-unit`.
35
34
 
36
- So, First create gem template with the `minitest` testing framework.
37
- (It's similar to `unit-test`).
38
- After that, replace some files for `test-unit`.
35
+ The `bundle gem -t test-unit sample` command will generate a gem template with the `test-unit` testing framework.
39
36
 
40
- The `bundle gem -t minitest sample` command will generate the following files.
41
-
42
- ~~~
43
- !!!plain
44
- .
45
- |-- Gemfile
46
- |-- README.md
47
- |-- Rakefile
48
- |-- bin
49
- | |-- console
50
- | `-- setup
51
- |-- lib
52
- | |-- sample
53
- | | `-- version.rb
54
- | `-- sample.rb
55
- |-- sample.gemspec # <- Modify
56
- `-- test
57
- |-- sample_test.rb # <- Modify
58
- `-- test_helper.rb # <- Modify
59
- ~~~
60
-
61
- ## 4. Edit files for `test-unit`
62
-
63
- ### 4.1. Edit gemspec
64
-
65
- Edit `sample.gemspec` like the below.
66
- Replace `minitest` line to `test-unit`.
67
-
68
- Before
69
-
70
- ~~~
71
- !!!ruby
72
- spec.add_development_dependency "minitest", "~> 5.0"
73
- ~~~
74
-
75
- After
76
-
77
- ~~~
78
- !!!ruby
79
- spec.add_development_dependency "test-unit", "~> 3.2.3"
80
- ~~~
81
-
82
- ### 4.2. Edit `test/test_helper.rb`
83
-
84
- Next, edit the `test/test_helper.rb` file.
85
-
86
- Before
87
-
88
- ~~~
89
- !!!ruby
90
- $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
91
- require 'sample'
92
-
93
- require 'minitest/autorun' # <-- Modify this line.
94
- ~~~
95
-
96
- After
97
-
98
- ~~~
99
- !!!ruby
100
- $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
101
- require 'sample'
102
-
103
- require 'test/unit' # <-- After modification.
104
- ~~~
105
-
106
- ### 4.3 Rakefile (No edit)
107
-
108
- This file doesn't need to modify.
109
- The output is the below.
110
-
111
- ~~~
112
- !!!ruby
113
- require "bundler/gem_tasks"
114
- require "rake/testtask"
115
-
116
- Rake::TestTask.new(:test) do |t|
117
- t.libs << "test"
118
- t.libs << "lib"
119
- t.test_files = FileList['test/**/*_test.rb']
120
- end
121
-
122
- task :default => :test
123
- ~~~
124
-
125
- ### 4.4 Edit `test/sample_test.rb`
126
-
127
- The bundler generate the file `test/sample_test.rb`.
128
- This file originally templates for `minitest`.
129
-
130
- Let's modify this file for `test-unit`
131
-
132
- before
133
-
134
- ~~~
135
- !!!ruby
136
- require 'test_helper'
137
-
138
- class SampleTest < Minitest::Test # <- Modify here
139
- def test_that_it_has_a_version_number
140
- refute_nil ::Sample::VERSION
141
- end
142
-
143
- def test_it_does_something_useful
144
- assert false
145
- end
146
- end
147
- ~~~
148
-
149
- After
150
-
151
- ~~~
152
- !!!ruby
153
- require 'test_helper'
154
-
155
- class SampleTest < Test::Unit::TestCase # <- After modification
156
- def test_that_it_has_a_version_number
157
- refute_nil ::Sample::VERSION
158
- end
159
-
160
- def test_it_does_something_useful
161
- assert false
162
- end
163
- end
164
- ~~~
165
-
166
- ## 5. Execute test.
37
+ ## 4. Execute test.
167
38
 
168
39
  The `rake test` command execute test scenarios in the `test` directory.
169
40
  Now it tries to two tests. One will success the other one fails.
170
41
 
171
42
  ~~~
172
43
  !!!plain
173
- rake test
174
- Loaded suite
175
- /path/to/ruby/lib/ruby/gems/2.3.0/gems/rake-12.0.0/lib/rake/rake_test_loader
44
+ $ rake test
45
+ Loaded suite /path/to/ruby/lib/ruby/gems/3.4.0/gems/rake-13.2.1/lib/rake/rake_test_loader
176
46
  Started
177
47
  F
178
48
  ================================================================================
179
- Failure: <false> is not true.
180
- test_it_does_something_useful(SampleTest)
181
- /path/to/sample/test/sample_test.rb:9:in `test_it_does_something_useful'
182
- 6: end
183
- 7:
184
- 8: def test_it_does_something_useful
185
- => 9: assert false
49
+ Failure: test: something useful(SampleTest)
50
+ /path/to/sample/test/sample_test.rb:13:in 'block in <class:SampleTest>'
186
51
  10: end
187
- 11: end
52
+ 11:
53
+ 12: test "something useful" do
54
+ => 13: assert_equal("expected", "actual")
55
+ 14: end
56
+ 15: end
57
+ <"expected"> expected but was
58
+ <"actual">
59
+
60
+ diff:
61
+ ? expected
62
+ ? a ual
63
+ ? ???? ??
188
64
  ================================================================================
189
- .
190
-
191
- Finished in 0.011521 seconds.
65
+ Finished in 0.013737 seconds.
192
66
  --------------------------------------------------------------------------------
193
67
  2 tests, 2 assertions, 1 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
194
68
  50% passed
195
69
  --------------------------------------------------------------------------------
196
- 173.60 tests/s, 173.60 assertions/s
70
+ 145.59 tests/s, 145.59 assertions/s
197
71
  rake aborted!
198
72
  Command failed with status (1)
199
73
 
@@ -201,7 +75,7 @@ Tasks: TOP => test
201
75
  (See full trace by running task with --trace)
202
76
  ~~~
203
77
 
204
- ## 6. Create original tests.
78
+ ## 5. Create original tests.
205
79
 
206
80
  Let's create your original tests with the following rules.
207
81
 
@@ -239,7 +113,7 @@ module Sub
239
113
  end
240
114
  ~~~
241
115
 
242
- ## 7. For more information
116
+ ## 6. For more information
243
117
 
244
118
  Let's read the official document.
245
119
 
data/doc/text/how-to.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Run all tests
4
4
 
5
- To make it easy to run all your tests, you can add a `run_test.rb` script
5
+ To make it easy to run all your tests, you can add a `run.rb` script
6
6
  to your `test` directory. A simple example might look like:
7
7
 
8
8
  base_dir = File.expand_path(File.join(File.dirname(__FILE__), ".."))
@@ -17,19 +17,19 @@ to your `test` directory. A simple example might look like:
17
17
 
18
18
  Then it's easy to run tests via the command line with,
19
19
 
20
- $ ruby test/run_test.rb
20
+ $ ruby test/run.rb
21
21
 
22
22
  ## Change test runner via the command line
23
23
 
24
24
  The output format can be changed via the command line with
25
25
  the `--runner` option. Simply tack it to the end:
26
26
 
27
- ruby test/run_test.rb --runner tap
27
+ ruby test/run.rb --runner emacs
28
28
 
29
29
 
30
30
  ## Configure test-unit per-project
31
31
 
32
- Test::Unit reads `test-unit.yml` or `.test-unit.yml` in the current working
32
+ Test::Unit reads `~/.test-unit.yml` or `test-unit.yml` in the current working
33
33
  directory as Test::Unit's configuration file. It can contain the following
34
34
  settings:
35
35
 
data/doc/text/news.md CHANGED
@@ -1,5 +1,223 @@
1
1
  # News
2
2
 
3
+ ## 3.7.0 - 2025-07-06 {#version-3-7-0}
4
+
5
+ ### Fixes
6
+
7
+ * Fixed a bug that `Test::Unit::TestCase` and `Test::Unit::AutoRunner`
8
+ aren't loaded when they are redefined by open class before referring
9
+ to these constants.
10
+ * GH-320
11
+ * GH-321
12
+ * Reported by Mamoru TASAKA
13
+
14
+ ### Thanks
15
+
16
+ * Mamoru TASAKA
17
+
18
+ ## 3.6.9 - 2025-06-29 {#version-3-6-9}
19
+
20
+ ### Improvements
21
+
22
+ * doc: test: Added one-line style to declare `Ractor` test.
23
+ * GH-261
24
+ * GH-309
25
+
26
+ * Used `require_relative` instead of `require` for internal library
27
+ files.
28
+ * GH-311
29
+ * GH-312
30
+ * GH-313
31
+ * GH-315
32
+
33
+ * Added the `--version` option.
34
+ * GH-314
35
+ * Patch by MSP-Greg
36
+
37
+ ### Thanks
38
+
39
+ * MSP-Greg
40
+
41
+ ## 3.6.8 - 2025-04-05 {#version-3-6-8}
42
+
43
+ ### Improvements
44
+
45
+ * `test-unit`: Added. You can use this instead of creating a custom
46
+ test run script.
47
+ * GH-288
48
+ * GH-289
49
+ * GH-291
50
+ * Suggested by gemmaro
51
+
52
+ * Updated the "how to" document.
53
+ * GH-292
54
+ * GH-293
55
+ * GH-294
56
+
57
+ * Updated the "getting started" document.
58
+ * GH-295
59
+ * GH-296
60
+
61
+ * Added support for `.test-unit` configuration file. It's useful for
62
+ specifying default options, and is handier than using `.test-unit.yml`.
63
+ * GH-300
64
+ * GH-302
65
+
66
+ ### Fixes
67
+
68
+ * parallel: thread: Fixed shutdown execution order.
69
+ * GH-282
70
+
71
+ * testcase: Fixed a bug that instance variables added during the test
72
+ runs are not garbage collected after each test run.
73
+ * GH-235
74
+ * GH-303
75
+ * Reported by akira yamada
76
+
77
+ ### Thanks
78
+
79
+ * gemmaro
80
+
81
+ * akira yamada
82
+
83
+ ## 3.6.7 - 2024-12-17 {#version-3-6-7}
84
+
85
+ ### Fixes
86
+
87
+ * Fixed a bug that test-unit doesn't work with Ruby < 2.5.
88
+
89
+ ## 3.6.6 - 2024-12-17 {#version-3-6-6}
90
+
91
+ ### Improvements
92
+
93
+ * Improved backward compatibility for the `Test::Unit::TestCase#run`
94
+ overriding case. In general, we don't recommend it but there are
95
+ old scripts that do it. (Mainly, I did it...)
96
+ * GH-276
97
+ * Reported by Mamoru TASAKA
98
+
99
+ ### Thanks
100
+
101
+ * Mamoru TASAKA
102
+
103
+ ## 3.6.5 - 2024-12-15 {#version-3-6-5}
104
+
105
+ ### Fixes
106
+
107
+ * parallel: thread: Fixed a bug that we can't use `pend` and `notify`.
108
+ * GH-271
109
+ * Reported by Takahiro Ueda
110
+ * Patch by Tsutomu Katsube
111
+
112
+ ### Thanks
113
+
114
+ * Takahiro Ueda
115
+
116
+ * Tsutomu Katsube
117
+
118
+ ## 3.6.4 - 2024-11-28 {#version-3-6-4}
119
+
120
+ ### Improvements
121
+
122
+ * Added support for Ruby 3.4.0.
123
+
124
+ ## 3.6.3 - 2024-11-24 {#version-3-6-3}
125
+
126
+ ### Improvements
127
+
128
+ * Added support for thread based parallel test running. You can use
129
+ it by the `--parallel=thread` option. You can disable parallel
130
+ test running per test case by defining `parallel_safe?` class
131
+ method that returns `false`.
132
+ * GH-235
133
+ * Patch by Tsutomu Katsube
134
+
135
+ * Added the `--n-workers` option.
136
+
137
+ * Added the `--[no-]report-slow-tests` option. You can show the top
138
+ 5 slow tests with this option.
139
+ * GH-253
140
+ * Patch by Tsutomu Katsube
141
+
142
+ * UI: console: Add support for outputting `Exception#cause`.
143
+
144
+ * Added support for inspecting `BasicObject`.
145
+ * GH-262.
146
+ * Patch by Yuta Saito
147
+
148
+ ### Thanks
149
+
150
+ * Tsutomu Katsube
151
+
152
+ * Yuta Saito
153
+
154
+ ## 3.6.2 - 2024-02-16 {#version-3-6-2}
155
+
156
+ ### Improvements
157
+
158
+ * UI: console: Add `--gc-stress` option that enables `GC.stress`
159
+ only whie each test is running.
160
+
161
+ * Added support for Ruby 3.4 style backtrace.
162
+ [GH-237][https://github.com/test-unit/test-unit/issues/237]
163
+ [Patch by Yusuke Endoh]
164
+
165
+ ### Thanks
166
+
167
+ * Yusuke Endoh
168
+
169
+ ## 3.6.1 - 2023-06-25 {#version-3-6-1}
170
+
171
+ ### Improvements
172
+
173
+ * collector: load: Improved performance when a large number of test
174
+ files exist.
175
+ [GH-232][https://github.com/test-unit/test-unit/issues/232]
176
+ [Patch by akira yamada]
177
+
178
+ ### Thanks
179
+
180
+ * akira yamada
181
+
182
+ ## 3.6.0 - 2023-05-25 {#version-3-6-0}
183
+
184
+ ### Improvements
185
+
186
+ * UI: console: Use `--progress-style=fault-only` with non-tty output
187
+ by default.
188
+
189
+ ## 3.5.9 - 2023-05-25 {#version-3-5-9}
190
+
191
+ ### Improvements
192
+
193
+ * UI: console: Use `--progress-style=mark` with `--verbose=verbose`
194
+ by default.
195
+
196
+ ## 3.5.8 - 2023-05-12 {#version-3-5-8}
197
+
198
+ ### Improvements
199
+
200
+ * doc: Improved document for multi Ractor mode.
201
+ [GH-226][https://github.com/test-unit/test-unit/issues/226]
202
+ [Patch by Luke Gruber]
203
+
204
+ * doc: Updated minitest's URL.
205
+ [GH-228][https://github.com/test-unit/test-unit/issues/228]
206
+ [Patch by Koichi ITO]
207
+
208
+ * UI: console: Added `--progress-style` option.
209
+
210
+ * UI: console: Compacted `--verbose=important-only` output..
211
+
212
+ * UI: console: Changed the default output level to `important-only`
213
+ on GitHub Actions.
214
+
215
+ ### Thanks
216
+
217
+ * Luke Gruber
218
+
219
+ * Koichi ITO
220
+
3
221
  ## 3.5.7 - 2022-12-15 {#version-3-5-7}
4
222
 
5
223
  ### Improvements
@@ -3,11 +3,11 @@
3
3
  # Copyright (c) 2009-2013 Kouhei Sutou. All rights reserved.
4
4
  # License:: Ruby license.
5
5
 
6
- require 'test/unit/assertion-failed-error'
7
- require 'test/unit/util/backtracefilter'
8
- require 'test/unit/util/memory-usage'
9
- require 'test/unit/util/method-owner-finder'
10
- require 'test/unit/diff'
6
+ require_relative 'assertion-failed-error'
7
+ require_relative 'util/backtracefilter'
8
+ require_relative 'util/memory-usage'
9
+ require_relative 'util/method-owner-finder'
10
+ require_relative 'diff'
11
11
 
12
12
  begin
13
13
  require 'power_assert'
@@ -2093,7 +2093,7 @@ EOT
2093
2093
 
2094
2094
  class << self
2095
2095
  def cached_new(object, inspected_objects)
2096
- inspected_objects[object.object_id] ||=
2096
+ inspected_objects[object.__id__] ||=
2097
2097
  new(object, inspected_objects)
2098
2098
  end
2099
2099
 
@@ -2115,7 +2115,7 @@ EOT
2115
2115
  def initialize(object, inspected_objects={})
2116
2116
  @inspected_objects = inspected_objects
2117
2117
  @object = object
2118
- @inspected_objects[@object.object_id] = self
2118
+ @inspected_objects[@object.__id__] = self
2119
2119
  @inspect_target = inspect_target
2120
2120
  end
2121
2121
 
@@ -2317,7 +2317,7 @@ EOT
2317
2317
 
2318
2318
  def initialize(parts)
2319
2319
  @parts = parts
2320
- @count = parts.find_all{|e| e == '?'}.size
2320
+ @count = parts.count('?')
2321
2321
  end
2322
2322
 
2323
2323
  def result(parameters)
@@ -1,4 +1,4 @@
1
- require "test/unit/test-suite-creator"
1
+ require_relative "test-suite-creator"
2
2
 
3
3
  module Test
4
4
  module Unit
@@ -8,7 +8,7 @@ module Test
8
8
  def check(test_case, method_name)
9
9
  return if @loaded
10
10
  return unless TestSuiteCreator.test_method?(test_case, method_name)
11
- require "test/unit"
11
+ require_relative "../unit"
12
12
  @loaded = true
13
13
  end
14
14
  end