minitest 5.11.3 → 5.25.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/History.rdoc +375 -4
- data/Manifest.txt +6 -0
- data/README.rdoc +106 -17
- data/Rakefile +11 -16
- data/lib/hoe/minitest.rb +2 -5
- data/lib/minitest/assertions.rb +255 -93
- data/lib/minitest/autorun.rb +0 -7
- data/lib/minitest/benchmark.rb +13 -16
- data/lib/minitest/compress.rb +94 -0
- data/lib/minitest/error_on_warning.rb +11 -0
- data/lib/minitest/expectations.rb +72 -35
- data/lib/minitest/manual_plugins.rb +16 -0
- data/lib/minitest/mock.rb +151 -44
- data/lib/minitest/parallel.rb +5 -5
- data/lib/minitest/pride_plugin.rb +17 -24
- data/lib/minitest/spec.rb +38 -19
- data/lib/minitest/test.rb +50 -33
- data/lib/minitest/test_task.rb +307 -0
- data/lib/minitest/unit.rb +5 -8
- data/lib/minitest.rb +414 -166
- data/test/minitest/metametameta.rb +65 -17
- data/test/minitest/test_minitest_assertions.rb +1720 -0
- data/test/minitest/test_minitest_benchmark.rb +3 -3
- data/test/minitest/test_minitest_mock.rb +409 -65
- data/test/minitest/test_minitest_reporter.rb +169 -32
- data/test/minitest/test_minitest_spec.rb +369 -193
- data/test/minitest/test_minitest_test.rb +463 -1249
- data/test/minitest/test_minitest_test_task.rb +57 -0
- data.tar.gz.sig +0 -0
- metadata +40 -23
- metadata.gz.sig +0 -0
@@ -0,0 +1,57 @@
|
|
1
|
+
require "minitest/autorun"
|
2
|
+
|
3
|
+
begin
|
4
|
+
require "hoe"
|
5
|
+
rescue LoadError => e
|
6
|
+
warn e.message
|
7
|
+
return
|
8
|
+
end
|
9
|
+
|
10
|
+
require "minitest/test_task"
|
11
|
+
|
12
|
+
Hoe.load_plugins # make sure Hoe::Test is loaded
|
13
|
+
|
14
|
+
class TestHoeTest < Minitest::Test
|
15
|
+
PATH = "test/minitest/test_minitest_test_task.rb"
|
16
|
+
|
17
|
+
def util_cmd_string *prelude_framework
|
18
|
+
mt_path = %w[lib test .].join File::PATH_SEPARATOR
|
19
|
+
mt_expected = "-I%s -w -e '%srequire %p' -- "
|
20
|
+
|
21
|
+
mt_expected % [mt_path, prelude_framework.join("; "), PATH]
|
22
|
+
end
|
23
|
+
|
24
|
+
def util_exp_cmd
|
25
|
+
@tester.make_test_cmd.sub(/ -- .+/, " -- ")
|
26
|
+
end
|
27
|
+
|
28
|
+
def test_make_test_cmd_for_minitest
|
29
|
+
skip "Using TESTOPTS... skipping" if ENV["TESTOPTS"]
|
30
|
+
|
31
|
+
require "minitest/test_task"
|
32
|
+
|
33
|
+
framework = %(require "minitest/autorun"; )
|
34
|
+
|
35
|
+
@tester = Minitest::TestTask.create :test do |t|
|
36
|
+
t.test_globs = [PATH]
|
37
|
+
end
|
38
|
+
|
39
|
+
assert_equal util_cmd_string(framework), util_exp_cmd
|
40
|
+
end
|
41
|
+
|
42
|
+
def test_make_test_cmd_for_minitest_prelude
|
43
|
+
skip "Using TESTOPTS... skipping" if ENV["TESTOPTS"]
|
44
|
+
|
45
|
+
require "minitest/test_task"
|
46
|
+
|
47
|
+
prelude = %(require "other/file")
|
48
|
+
framework = %(require "minitest/autorun"; )
|
49
|
+
|
50
|
+
@tester = Minitest::TestTask.create :test do |t|
|
51
|
+
t.test_prelude = prelude
|
52
|
+
t.test_globs = [PATH]
|
53
|
+
end
|
54
|
+
|
55
|
+
assert_equal util_cmd_string(prelude, framework), util_exp_cmd
|
56
|
+
end
|
57
|
+
end
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.25.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Davis
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain:
|
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C174/cbDJrJnRG9bzig5FAP0mvsgA8zgTRXQzIUAZEo92D5K7p4
|
28
|
+
B4/O998ho6BSOgYBI9Yk1ttdCtti6Y+8N9+fZESsjtWMykA+WXWeGUScHqiU+gH8
|
29
|
+
S7043fq9EbQdBr2AXdj92+CDwuTfHI6/Hj5FVBDULufrJaan4xUgL70Hvc6pTTeW
|
30
|
+
deKfBjgVAq7EYHu1AczzlUly
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date:
|
32
|
+
date: 2024-12-04 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: rdoc
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '4.0'
|
41
|
+
- - "<"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '7'
|
41
44
|
type: :development
|
42
45
|
prerelease: false
|
43
46
|
version_requirements: !ruby/object:Gem::Requirement
|
44
47
|
requirements:
|
45
|
-
- - "
|
48
|
+
- - ">="
|
46
49
|
- !ruby/object:Gem::Version
|
47
50
|
version: '4.0'
|
51
|
+
- - "<"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '7'
|
48
54
|
- !ruby/object:Gem::Dependency
|
49
55
|
name: hoe
|
50
56
|
requirement: !ruby/object:Gem::Requirement
|
51
57
|
requirements:
|
52
58
|
- - "~>"
|
53
59
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
60
|
+
version: '4.2'
|
55
61
|
type: :development
|
56
62
|
prerelease: false
|
57
63
|
version_requirements: !ruby/object:Gem::Requirement
|
58
64
|
requirements:
|
59
65
|
- - "~>"
|
60
66
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
67
|
+
version: '4.2'
|
62
68
|
description: |-
|
63
69
|
minitest provides a complete suite of testing facilities supporting
|
64
70
|
TDD, BDD, mocking, and benchmarking.
|
@@ -133,26 +139,35 @@ files:
|
|
133
139
|
- lib/minitest/assertions.rb
|
134
140
|
- lib/minitest/autorun.rb
|
135
141
|
- lib/minitest/benchmark.rb
|
142
|
+
- lib/minitest/compress.rb
|
143
|
+
- lib/minitest/error_on_warning.rb
|
136
144
|
- lib/minitest/expectations.rb
|
137
145
|
- lib/minitest/hell.rb
|
146
|
+
- lib/minitest/manual_plugins.rb
|
138
147
|
- lib/minitest/mock.rb
|
139
148
|
- lib/minitest/parallel.rb
|
140
149
|
- lib/minitest/pride.rb
|
141
150
|
- lib/minitest/pride_plugin.rb
|
142
151
|
- lib/minitest/spec.rb
|
143
152
|
- lib/minitest/test.rb
|
153
|
+
- lib/minitest/test_task.rb
|
144
154
|
- lib/minitest/unit.rb
|
145
155
|
- test/minitest/metametameta.rb
|
156
|
+
- test/minitest/test_minitest_assertions.rb
|
146
157
|
- test/minitest/test_minitest_benchmark.rb
|
147
158
|
- test/minitest/test_minitest_mock.rb
|
148
159
|
- test/minitest/test_minitest_reporter.rb
|
149
160
|
- test/minitest/test_minitest_spec.rb
|
150
161
|
- test/minitest/test_minitest_test.rb
|
151
|
-
|
162
|
+
- test/minitest/test_minitest_test_task.rb
|
163
|
+
homepage: https://github.com/minitest/minitest
|
152
164
|
licenses:
|
153
165
|
- MIT
|
154
|
-
metadata:
|
155
|
-
|
166
|
+
metadata:
|
167
|
+
homepage_uri: https://github.com/minitest/minitest
|
168
|
+
bug_tracker_uri: https://github.com/minitest/minitest/issues
|
169
|
+
changelog_uri: https://github.com/minitest/minitest/blob/master/History.rdoc
|
170
|
+
post_install_message:
|
156
171
|
rdoc_options:
|
157
172
|
- "--main"
|
158
173
|
- README.rdoc
|
@@ -162,16 +177,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
162
177
|
requirements:
|
163
178
|
- - ">="
|
164
179
|
- !ruby/object:Gem::Version
|
165
|
-
version: '
|
180
|
+
version: '2.6'
|
181
|
+
- - "<"
|
182
|
+
- !ruby/object:Gem::Version
|
183
|
+
version: '4.0'
|
166
184
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
167
185
|
requirements:
|
168
186
|
- - ">="
|
169
187
|
- !ruby/object:Gem::Version
|
170
188
|
version: '0'
|
171
189
|
requirements: []
|
172
|
-
|
173
|
-
|
174
|
-
signing_key:
|
190
|
+
rubygems_version: 3.5.23
|
191
|
+
signing_key:
|
175
192
|
specification_version: 4
|
176
193
|
summary: minitest provides a complete suite of testing facilities supporting TDD,
|
177
194
|
BDD, mocking, and benchmarking
|
metadata.gz.sig
CHANGED
Binary file
|