minitest-allow 1.2.3 → 1.3.1
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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/History.rdoc +13 -0
- data/README.rdoc +1 -0
- data/Rakefile +1 -1
- data/lib/minitest/allow_plugin.rb +71 -42
- data/test/minitest/test_allow_plugin.rb +3 -1
- data.tar.gz.sig +0 -0
- metadata +19 -22
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 81c5b703a6b3a11ed51e45dbe6682982ad3c313860f146b8ce84ffbb6974be61
|
|
4
|
+
data.tar.gz: 4c13fe08e38ef0fb6758a943528d1930f9e0c9b3733756eca476134dc000cdca
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f7445d6356f5022bda0f598900ca0985d92e068346fcb68dd10dd757dc59d319d1ffdfbaa40389d41d006536f40af62dd615004b0ce1c2d890db69bc95166c77
|
|
7
|
+
data.tar.gz: 402b18c3e04beffa8a5fbadb3d7267ba4d87286ee4eb35b2f772dca915f997ac9993d8d45b5229298a23fcfb5bd8e0865998185ea10d18d4494682e685105c2d
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/History.rdoc
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
=== 1.3.1 / 2026-01-04
|
|
2
|
+
|
|
3
|
+
* 2 bug fixes:
|
|
4
|
+
|
|
5
|
+
* Loosened the minitest dependency to include MT6.
|
|
6
|
+
* MT6: Fixed --check to work with both MT5 and MT6+.
|
|
7
|
+
|
|
8
|
+
=== 1.3.0 / 2025-12-11
|
|
9
|
+
|
|
10
|
+
* 1 minor enhancement:
|
|
11
|
+
|
|
12
|
+
* Added a -c/--check option to help regenerate file. (bquorning)
|
|
13
|
+
|
|
1
14
|
=== 1.2.3 / 2023-02-06
|
|
2
15
|
|
|
3
16
|
* 1 bug fix:
|
data/README.rdoc
CHANGED
|
@@ -14,6 +14,7 @@ green CI with against a list of known bad tests.
|
|
|
14
14
|
|
|
15
15
|
* Run with `-A path/to/allowed.yml` to generate a list of failing tests.
|
|
16
16
|
* Run with `-a path/to/allowed.yml` to allow listed tests to fail.
|
|
17
|
+
* Run with `-c path/to/allowed.yml` to only run the allowed test, and then regenerate the list.
|
|
17
18
|
|
|
18
19
|
== SYNOPSIS:
|
|
19
20
|
|
data/Rakefile
CHANGED
|
@@ -1,50 +1,13 @@
|
|
|
1
1
|
module Minitest
|
|
2
|
-
def self.plugin_allow_options opts, _options # :nodoc:
|
|
3
|
-
@allow = @allow_save = false
|
|
4
|
-
|
|
5
|
-
opts.on "-a", "--allow=path", String, "Allow listed tests to fail." do |f|
|
|
6
|
-
# don't ask why I'm using this specifically:
|
|
7
|
-
require "psych"
|
|
8
|
-
|
|
9
|
-
@allow = if Psych.respond_to? :safe_load_file then
|
|
10
|
-
Psych.safe_load_file f, permitted_classes: [Regexp]
|
|
11
|
-
else
|
|
12
|
-
Psych.load_file f
|
|
13
|
-
end || []
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
opts.on "-A", "--save-allow=path", String, "Save failing tests." do |f|
|
|
17
|
-
require "psych"
|
|
18
|
-
@allow_save = f
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
def self.plugin_allow_init options # :nodoc:
|
|
23
|
-
if @allow || @allow_save then
|
|
24
|
-
self.reporter.extend Allow
|
|
25
|
-
self.reporter.allow = @allow
|
|
26
|
-
self.reporter.allow_save = @allow_save
|
|
27
|
-
self.reporter.allow_seen = []
|
|
28
|
-
end
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
class Result # TODO: push up
|
|
32
|
-
def full_name
|
|
33
|
-
"%s#%s" % [klass, name]
|
|
34
|
-
end
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
class Minitest::Test # sigh... rails
|
|
38
|
-
def full_name
|
|
39
|
-
"%s#%s" % [self.class, name]
|
|
40
|
-
end
|
|
41
|
-
end
|
|
42
|
-
|
|
43
2
|
module Allow
|
|
44
|
-
VERSION = "1.
|
|
3
|
+
VERSION = "1.3.1"
|
|
45
4
|
|
|
46
5
|
attr_accessor :allow, :allow_save, :allow_seen
|
|
47
6
|
|
|
7
|
+
class << self
|
|
8
|
+
attr_accessor :run_only
|
|
9
|
+
end
|
|
10
|
+
|
|
48
11
|
def record result
|
|
49
12
|
allow_seen << result.full_name
|
|
50
13
|
super
|
|
@@ -164,4 +127,70 @@ module Minitest
|
|
|
164
127
|
super # CompositeReporter#passed?
|
|
165
128
|
end
|
|
166
129
|
end
|
|
130
|
+
|
|
131
|
+
def self.plugin_allow_options opts, _options # :nodoc:
|
|
132
|
+
@allow = @allow_save = false
|
|
133
|
+
@run_only = []
|
|
134
|
+
|
|
135
|
+
opts.on "-c", "--check=path", String, "Run only the tests listed in the allowed file. Overwrites the current file." do |f|
|
|
136
|
+
require "psych"
|
|
137
|
+
|
|
138
|
+
@run_only = if Psych.respond_to? :safe_load_file
|
|
139
|
+
Psych.safe_load_file f, permitted_classes: [Regexp]
|
|
140
|
+
else
|
|
141
|
+
Psych.load_file f
|
|
142
|
+
end || []
|
|
143
|
+
@allow_save = f
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
opts.on "-a", "--allow=path", String, "Allow listed tests to fail." do |f|
|
|
147
|
+
# don't ask why I'm using this specifically:
|
|
148
|
+
require "psych"
|
|
149
|
+
|
|
150
|
+
@allow = if Psych.respond_to? :safe_load_file then
|
|
151
|
+
Psych.safe_load_file f, permitted_classes: [Regexp]
|
|
152
|
+
else
|
|
153
|
+
Psych.load_file f
|
|
154
|
+
end || []
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
opts.on "-A", "--save-allow=path", String, "Save failing tests." do |f|
|
|
158
|
+
require "psych"
|
|
159
|
+
@allow_save = f
|
|
160
|
+
end
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
def self.plugin_allow_init options # :nodoc:
|
|
164
|
+
if @allow || @allow_save then
|
|
165
|
+
self.reporter.extend Allow
|
|
166
|
+
self.reporter.allow = @allow
|
|
167
|
+
self.reporter.allow_save = @allow_save
|
|
168
|
+
self.reporter.allow_seen = []
|
|
169
|
+
end
|
|
170
|
+
Minitest::Allow.run_only = @run_only
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
class Result # TODO: push up
|
|
174
|
+
def full_name
|
|
175
|
+
"%s#%s" % [klass, name]
|
|
176
|
+
end
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
class Minitest::Test # sigh... rails
|
|
180
|
+
def full_name
|
|
181
|
+
"%s#%s" % [self.class, name]
|
|
182
|
+
end
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
module CheckRunOverride
|
|
186
|
+
msg = Minitest.respond_to?(:run_all_suites) ? :run_all_suites : :__run
|
|
187
|
+
|
|
188
|
+
define_method msg do |reporter, options = {}|
|
|
189
|
+
options[:filter] = Regexp.union Minitest::Allow.run_only unless
|
|
190
|
+
Minitest::Allow.run_only.empty?
|
|
191
|
+
super reporter, options
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
singleton_class.prepend CheckRunOverride
|
|
167
196
|
end
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: minitest-allow
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryan Davis
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain:
|
|
11
10
|
- |
|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aNzqxeOICmJofk9w5VZ2rRN6yes8jvFYwz9HR41wdj8
|
|
28
|
+
bwfinv7Yp5fA6AysuZLhCykyfDuZVRrUp0Vb68YCKsLjJly/Theak+euNTxvHsB+
|
|
29
|
+
al9oSgPPHICMEX65qvLywitx
|
|
31
30
|
-----END CERTIFICATE-----
|
|
32
|
-
date:
|
|
31
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
33
32
|
dependencies:
|
|
34
33
|
- !ruby/object:Gem::Dependency
|
|
35
34
|
name: minitest
|
|
36
35
|
requirement: !ruby/object:Gem::Requirement
|
|
37
36
|
requirements:
|
|
38
|
-
- - "
|
|
37
|
+
- - ">"
|
|
39
38
|
- !ruby/object:Gem::Version
|
|
40
39
|
version: '5.0'
|
|
41
40
|
type: :runtime
|
|
42
41
|
prerelease: false
|
|
43
42
|
version_requirements: !ruby/object:Gem::Requirement
|
|
44
43
|
requirements:
|
|
45
|
-
- - "
|
|
44
|
+
- - ">"
|
|
46
45
|
- !ruby/object:Gem::Version
|
|
47
46
|
version: '5.0'
|
|
48
47
|
- !ruby/object:Gem::Dependency
|
|
@@ -51,34 +50,34 @@ dependencies:
|
|
|
51
50
|
requirements:
|
|
52
51
|
- - ">="
|
|
53
52
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: '
|
|
53
|
+
version: '6.0'
|
|
55
54
|
- - "<"
|
|
56
55
|
- !ruby/object:Gem::Version
|
|
57
|
-
version: '
|
|
56
|
+
version: '8'
|
|
58
57
|
type: :development
|
|
59
58
|
prerelease: false
|
|
60
59
|
version_requirements: !ruby/object:Gem::Requirement
|
|
61
60
|
requirements:
|
|
62
61
|
- - ">="
|
|
63
62
|
- !ruby/object:Gem::Version
|
|
64
|
-
version: '
|
|
63
|
+
version: '6.0'
|
|
65
64
|
- - "<"
|
|
66
65
|
- !ruby/object:Gem::Version
|
|
67
|
-
version: '
|
|
66
|
+
version: '8'
|
|
68
67
|
- !ruby/object:Gem::Dependency
|
|
69
68
|
name: hoe
|
|
70
69
|
requirement: !ruby/object:Gem::Requirement
|
|
71
70
|
requirements:
|
|
72
71
|
- - "~>"
|
|
73
72
|
- !ruby/object:Gem::Version
|
|
74
|
-
version: '4.
|
|
73
|
+
version: '4.5'
|
|
75
74
|
type: :development
|
|
76
75
|
prerelease: false
|
|
77
76
|
version_requirements: !ruby/object:Gem::Requirement
|
|
78
77
|
requirements:
|
|
79
78
|
- - "~>"
|
|
80
79
|
- !ruby/object:Gem::Version
|
|
81
|
-
version: '4.
|
|
80
|
+
version: '4.5'
|
|
82
81
|
description: |-
|
|
83
82
|
Allows you to provide an exclusion list of allowed failures/errors.
|
|
84
83
|
Failures and errors on this list still get run and reported as usual,
|
|
@@ -106,7 +105,6 @@ licenses:
|
|
|
106
105
|
- MIT
|
|
107
106
|
metadata:
|
|
108
107
|
homepage_uri: https://github.com/seattlerb/minitest-allow
|
|
109
|
-
post_install_message:
|
|
110
108
|
rdoc_options:
|
|
111
109
|
- "--main"
|
|
112
110
|
- README.rdoc
|
|
@@ -123,8 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
123
121
|
- !ruby/object:Gem::Version
|
|
124
122
|
version: '0'
|
|
125
123
|
requirements: []
|
|
126
|
-
rubygems_version: 3.
|
|
127
|
-
signing_key:
|
|
124
|
+
rubygems_version: 3.7.2
|
|
128
125
|
specification_version: 4
|
|
129
126
|
summary: Allows you to provide an exclusion list of allowed failures/errors
|
|
130
127
|
test_files: []
|
metadata.gz.sig
CHANGED
|
Binary file
|