minitest-reporters 1.7.1 → 1.8.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/lib/minitest/minitest_reporter_plugin.rb +2 -1
- data/lib/minitest/reporters/progress_reporter.rb +5 -2
- data/lib/minitest/reporters/version.rb +1 -1
- data/lib/minitest/reporters.rb +7 -0
- metadata +10 -85
- data/.github/workflows/ci.yml +0 -51
- data/.gitignore +0 -28
- data/.rubocop.yml +0 -72
- data/.rubocop_todo.yml +0 -514
- data/.ruby-gemset +0 -1
- data/.yardopts +0 -5
- data/Gemfile +0 -2
- data/Rakefile +0 -70
- data/appveyor.yml +0 -22
- data/assets/default-reporter.png +0 -0
- data/assets/mean_time_reporter.png +0 -0
- data/assets/progress-reporter.png +0 -0
- data/assets/spec-reporter.png +0 -0
- data/minitest-reporters.gemspec +0 -30
- data/test/fixtures/junit_filename_bug_example_test.rb +0 -41
- data/test/fixtures/mean_time_test.rb +0 -36
- data/test/fixtures/progress_detailed_skip_test.rb +0 -8
- data/test/fixtures/progress_test.rb +0 -8
- data/test/fixtures/sample_test.rb +0 -15
- data/test/fixtures/spec_test.rb +0 -18
- data/test/gallery/bad_test.rb +0 -25
- data/test/gallery/good_test.rb +0 -14
- data/test/integration/reporters/junit_reporter_test.rb +0 -28
- data/test/integration/reporters/mean_time_reporter_test.rb +0 -7
- data/test/integration/reporters/progress_reporter_test.rb +0 -40
- data/test/test_helper.rb +0 -22
- data/test/unit/minitest/extensible_backtrace_filter_test.rb +0 -42
- data/test/unit/minitest/junit_reporter_test.rb +0 -46
- data/test/unit/minitest/mean_time_reporter_unit_test.rb +0 -149
- data/test/unit/minitest/minitest_reporter_plugin_test.rb +0 -14
- data/test/unit/minitest/reporters_test.rb +0 -65
- data/test/unit/minitest/spec_reporter_test.rb +0 -62
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6abdab40b219c5b4181bb9b1090f9db3cc2782a2df41b3422b54ffe2ab7ceebd
|
|
4
|
+
data.tar.gz: 641731a097571d31c284fd7cec2684d23b50632dfa3b3a9ac1119b8215159e65
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8f40b3328b70e5c55731e3328ba9363ca741e72cf63d81a8f518cffe515ced1cc6dcf3ad9ff41eec5928250bbb449f9edec46efb420c8d2da18884dfe085a2f6
|
|
7
|
+
data.tar.gz: 428e4d8c0c109bb009c1ba9a2f9749e147252c7db9fdf3a6a9dda79c03c88e2d05164e71a7a372f4001a0f7c6b7976971d7fe8132a2d850652f239eeedbed13c
|
data/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
### [dev](https://github.com/minitest-reporters/minitest-reporters/compare/v1.
|
|
1
|
+
### [dev](https://github.com/minitest-reporters/minitest-reporters/compare/v1.8.0...master)
|
|
2
|
+
|
|
3
|
+
### [1.8.0](https://github.com/minitest-reporters/minitest-reporters/compare/v1.7.1...1.8.0)
|
|
4
|
+
* Added support for minitest 6 [#366](https://github.com/minitest-reporters/minitest-reporters/pull/366) contributed by [Maimer](https://github.com/Maimer)
|
|
5
|
+
* Updated gemspec to avoid packaging unnecessary files in the gem
|
|
2
6
|
|
|
3
7
|
### [1.7.1](https://github.com/minitest-reporters/minitest-reporters/compare/v1.7.0...v1.7.1)
|
|
4
8
|
* Fixed logic of new `suppress_inline_failure_output`. This option was doing the opposite of what it intended to do.
|
|
@@ -40,7 +40,8 @@ module Minitest
|
|
|
40
40
|
|
|
41
41
|
# stolen from minitest self.run
|
|
42
42
|
def total_count(options)
|
|
43
|
-
|
|
43
|
+
# In minitest 6, options[:filter] was renamed to options[:include]
|
|
44
|
+
filter = options[:include] || options[:filter] || '/./'
|
|
44
45
|
filter = Regexp.new $1 if filter.is_a?(String) && filter =~ %r%/(.*)/%
|
|
45
46
|
|
|
46
47
|
Minitest::Runnable.runnables.map { |runnable|
|
|
@@ -49,12 +49,15 @@ module Minitest
|
|
|
49
49
|
def record(test)
|
|
50
50
|
super
|
|
51
51
|
return show if test.skipped? && !@detailed_skip
|
|
52
|
-
|
|
52
|
+
|
|
53
|
+
# In minitest 6, we need to handle skipped tests explicitly
|
|
54
|
+
# because test.failure might not trigger the same way
|
|
55
|
+
if test.failure || (test.skipped? && @detailed_skip)
|
|
53
56
|
print "\e[0m\e[1000D\e[K"
|
|
54
57
|
print_colored_status(test)
|
|
55
58
|
print_test_with_time(test)
|
|
56
59
|
puts
|
|
57
|
-
print_info(test.failure, test.error?)
|
|
60
|
+
print_info(test.failure, test.error?) if test.failure
|
|
58
61
|
puts
|
|
59
62
|
end
|
|
60
63
|
|
data/lib/minitest/reporters.rb
CHANGED
|
@@ -3,6 +3,7 @@ require 'minitest'
|
|
|
3
3
|
module Minitest
|
|
4
4
|
require "minitest/relative_position"
|
|
5
5
|
require "minitest/extensible_backtrace_filter"
|
|
6
|
+
require "minitest/minitest_reporter_plugin"
|
|
6
7
|
|
|
7
8
|
module Reporters
|
|
8
9
|
require "minitest/reporters/version"
|
|
@@ -17,6 +18,7 @@ module Minitest
|
|
|
17
18
|
autoload :JUnitReporter, "minitest/reporters/junit_reporter"
|
|
18
19
|
autoload :HtmlReporter, "minitest/reporters/html_reporter"
|
|
19
20
|
autoload :MeanTimeReporter, "minitest/reporters/mean_time_reporter"
|
|
21
|
+
autoload :DelegateReporter, "minitest/minitest_reporter_plugin"
|
|
20
22
|
|
|
21
23
|
class << self
|
|
22
24
|
attr_accessor :reporters
|
|
@@ -32,10 +34,15 @@ module Minitest
|
|
|
32
34
|
unless defined?(@@loaded)
|
|
33
35
|
use_around_test_hooks!
|
|
34
36
|
use_old_activesupport_fix!
|
|
37
|
+
register_minitest_plugin!
|
|
35
38
|
@@loaded = true
|
|
36
39
|
end
|
|
37
40
|
end
|
|
38
41
|
|
|
42
|
+
def self.register_minitest_plugin!
|
|
43
|
+
Minitest.register_plugin("minitest_reporter") if Gem::Version.new(Minitest::VERSION) >= Gem::Version.new("6.0.0")
|
|
44
|
+
end
|
|
45
|
+
|
|
39
46
|
def self.use_runner!(console_reporters, env)
|
|
40
47
|
self.reporters = choose_reporters(console_reporters, env)
|
|
41
48
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: minitest-reporters
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alexander Kern
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: minitest
|
|
@@ -17,6 +16,9 @@ dependencies:
|
|
|
17
16
|
- - ">="
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
18
|
version: '5.0'
|
|
19
|
+
- - "<"
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: '7'
|
|
20
22
|
type: :runtime
|
|
21
23
|
prerelease: false
|
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -24,6 +26,9 @@ dependencies:
|
|
|
24
26
|
- - ">="
|
|
25
27
|
- !ruby/object:Gem::Version
|
|
26
28
|
version: '5.0'
|
|
29
|
+
- - "<"
|
|
30
|
+
- !ruby/object:Gem::Version
|
|
31
|
+
version: '7'
|
|
27
32
|
- !ruby/object:Gem::Dependency
|
|
28
33
|
name: ansi
|
|
29
34
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -66,34 +71,6 @@ dependencies:
|
|
|
66
71
|
- - ">="
|
|
67
72
|
- !ruby/object:Gem::Version
|
|
68
73
|
version: '0'
|
|
69
|
-
- !ruby/object:Gem::Dependency
|
|
70
|
-
name: rake
|
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
|
72
|
-
requirements:
|
|
73
|
-
- - ">="
|
|
74
|
-
- !ruby/object:Gem::Version
|
|
75
|
-
version: '0'
|
|
76
|
-
type: :development
|
|
77
|
-
prerelease: false
|
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
-
requirements:
|
|
80
|
-
- - ">="
|
|
81
|
-
- !ruby/object:Gem::Version
|
|
82
|
-
version: '0'
|
|
83
|
-
- !ruby/object:Gem::Dependency
|
|
84
|
-
name: rubocop
|
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
|
86
|
-
requirements:
|
|
87
|
-
- - ">="
|
|
88
|
-
- !ruby/object:Gem::Version
|
|
89
|
-
version: '0'
|
|
90
|
-
type: :development
|
|
91
|
-
prerelease: false
|
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
-
requirements:
|
|
94
|
-
- - ">="
|
|
95
|
-
- !ruby/object:Gem::Version
|
|
96
|
-
version: '0'
|
|
97
74
|
description: Death to haphazard monkey-patching! Extend Minitest through simple hooks.
|
|
98
75
|
email:
|
|
99
76
|
- alex@kernul.com
|
|
@@ -101,22 +78,9 @@ executables: []
|
|
|
101
78
|
extensions: []
|
|
102
79
|
extra_rdoc_files: []
|
|
103
80
|
files:
|
|
104
|
-
- ".github/workflows/ci.yml"
|
|
105
|
-
- ".gitignore"
|
|
106
|
-
- ".rubocop.yml"
|
|
107
|
-
- ".rubocop_todo.yml"
|
|
108
|
-
- ".ruby-gemset"
|
|
109
|
-
- ".yardopts"
|
|
110
81
|
- CHANGELOG.md
|
|
111
|
-
- Gemfile
|
|
112
82
|
- LICENSE
|
|
113
83
|
- README.md
|
|
114
|
-
- Rakefile
|
|
115
|
-
- appveyor.yml
|
|
116
|
-
- assets/default-reporter.png
|
|
117
|
-
- assets/mean_time_reporter.png
|
|
118
|
-
- assets/progress-reporter.png
|
|
119
|
-
- assets/spec-reporter.png
|
|
120
84
|
- lib/minitest/extensible_backtrace_filter.rb
|
|
121
85
|
- lib/minitest/minitest_reporter_plugin.rb
|
|
122
86
|
- lib/minitest/old_activesupport_fix.rb
|
|
@@ -134,30 +98,10 @@ files:
|
|
|
134
98
|
- lib/minitest/reporters/spec_reporter.rb
|
|
135
99
|
- lib/minitest/reporters/version.rb
|
|
136
100
|
- lib/minitest/templates/index.html.erb
|
|
137
|
-
- minitest-reporters.gemspec
|
|
138
|
-
- test/fixtures/junit_filename_bug_example_test.rb
|
|
139
|
-
- test/fixtures/mean_time_test.rb
|
|
140
|
-
- test/fixtures/progress_detailed_skip_test.rb
|
|
141
|
-
- test/fixtures/progress_test.rb
|
|
142
|
-
- test/fixtures/sample_test.rb
|
|
143
|
-
- test/fixtures/spec_test.rb
|
|
144
|
-
- test/gallery/bad_test.rb
|
|
145
|
-
- test/gallery/good_test.rb
|
|
146
|
-
- test/integration/reporters/junit_reporter_test.rb
|
|
147
|
-
- test/integration/reporters/mean_time_reporter_test.rb
|
|
148
|
-
- test/integration/reporters/progress_reporter_test.rb
|
|
149
|
-
- test/test_helper.rb
|
|
150
|
-
- test/unit/minitest/extensible_backtrace_filter_test.rb
|
|
151
|
-
- test/unit/minitest/junit_reporter_test.rb
|
|
152
|
-
- test/unit/minitest/mean_time_reporter_unit_test.rb
|
|
153
|
-
- test/unit/minitest/minitest_reporter_plugin_test.rb
|
|
154
|
-
- test/unit/minitest/reporters_test.rb
|
|
155
|
-
- test/unit/minitest/spec_reporter_test.rb
|
|
156
101
|
homepage: https://github.com/minitest-reporters/minitest-reporters
|
|
157
102
|
licenses:
|
|
158
103
|
- MIT
|
|
159
104
|
metadata: {}
|
|
160
|
-
post_install_message:
|
|
161
105
|
rdoc_options: []
|
|
162
106
|
require_paths:
|
|
163
107
|
- lib
|
|
@@ -172,26 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
172
116
|
- !ruby/object:Gem::Version
|
|
173
117
|
version: '0'
|
|
174
118
|
requirements: []
|
|
175
|
-
rubygems_version: 3.
|
|
176
|
-
signing_key:
|
|
119
|
+
rubygems_version: 3.6.7
|
|
177
120
|
specification_version: 4
|
|
178
121
|
summary: Create customizable Minitest output formats
|
|
179
|
-
test_files:
|
|
180
|
-
- test/fixtures/junit_filename_bug_example_test.rb
|
|
181
|
-
- test/fixtures/mean_time_test.rb
|
|
182
|
-
- test/fixtures/progress_detailed_skip_test.rb
|
|
183
|
-
- test/fixtures/progress_test.rb
|
|
184
|
-
- test/fixtures/sample_test.rb
|
|
185
|
-
- test/fixtures/spec_test.rb
|
|
186
|
-
- test/gallery/bad_test.rb
|
|
187
|
-
- test/gallery/good_test.rb
|
|
188
|
-
- test/integration/reporters/junit_reporter_test.rb
|
|
189
|
-
- test/integration/reporters/mean_time_reporter_test.rb
|
|
190
|
-
- test/integration/reporters/progress_reporter_test.rb
|
|
191
|
-
- test/test_helper.rb
|
|
192
|
-
- test/unit/minitest/extensible_backtrace_filter_test.rb
|
|
193
|
-
- test/unit/minitest/junit_reporter_test.rb
|
|
194
|
-
- test/unit/minitest/mean_time_reporter_unit_test.rb
|
|
195
|
-
- test/unit/minitest/minitest_reporter_plugin_test.rb
|
|
196
|
-
- test/unit/minitest/reporters_test.rb
|
|
197
|
-
- test/unit/minitest/spec_reporter_test.rb
|
|
122
|
+
test_files: []
|
data/.github/workflows/ci.yml
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
name: Tests
|
|
2
|
-
|
|
3
|
-
on: [push, pull_request]
|
|
4
|
-
|
|
5
|
-
jobs:
|
|
6
|
-
test:
|
|
7
|
-
runs-on: ubuntu-latest
|
|
8
|
-
strategy:
|
|
9
|
-
fail-fast: false
|
|
10
|
-
matrix:
|
|
11
|
-
ruby-version:
|
|
12
|
-
- head
|
|
13
|
-
- '3.2'
|
|
14
|
-
- '3.1'
|
|
15
|
-
- '3.0'
|
|
16
|
-
- '2.7'
|
|
17
|
-
- '2.6'
|
|
18
|
-
- '2.5'
|
|
19
|
-
- '2.4'
|
|
20
|
-
- '2.3'
|
|
21
|
-
- jruby-head
|
|
22
|
-
- jruby-9.3
|
|
23
|
-
- jruby-9.2
|
|
24
|
-
steps:
|
|
25
|
-
- uses: actions/checkout@v3
|
|
26
|
-
- name: Set up Ruby ${{ matrix.ruby-version }}
|
|
27
|
-
uses: ruby/setup-ruby@v1
|
|
28
|
-
with:
|
|
29
|
-
ruby-version: ${{ matrix.ruby-version }}
|
|
30
|
-
bundler-cache: true # 'bundle install' and cache
|
|
31
|
-
- name: Run tests
|
|
32
|
-
run: bundle exec rake
|
|
33
|
-
|
|
34
|
-
legacy-test:
|
|
35
|
-
runs-on: ubuntu-20.04
|
|
36
|
-
strategy:
|
|
37
|
-
fail-fast: false
|
|
38
|
-
matrix:
|
|
39
|
-
ruby-version:
|
|
40
|
-
- '2.2'
|
|
41
|
-
- '2.1'
|
|
42
|
-
- '2.0'
|
|
43
|
-
steps:
|
|
44
|
-
- uses: actions/checkout@v3
|
|
45
|
-
- name: Set up Ruby ${{ matrix.ruby-version }}
|
|
46
|
-
uses: ruby/setup-ruby@v1
|
|
47
|
-
with:
|
|
48
|
-
ruby-version: ${{ matrix.ruby-version }}
|
|
49
|
-
bundler-cache: true # 'bundle install' and cache
|
|
50
|
-
- name: Run tests
|
|
51
|
-
run: bundle exec rake
|
data/.gitignore
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
coverage
|
|
2
|
-
rdoc
|
|
3
|
-
pkg
|
|
4
|
-
test/tmp
|
|
5
|
-
test/version_tmp
|
|
6
|
-
test/reports
|
|
7
|
-
test/html_reports
|
|
8
|
-
tmp
|
|
9
|
-
pkg
|
|
10
|
-
*.gem
|
|
11
|
-
*.rbc
|
|
12
|
-
lib/bundler/man
|
|
13
|
-
spec/reports
|
|
14
|
-
.config
|
|
15
|
-
InstalledFiles
|
|
16
|
-
.bundle
|
|
17
|
-
|
|
18
|
-
# YARD artifacts
|
|
19
|
-
.yardoc
|
|
20
|
-
_yardoc
|
|
21
|
-
doc/
|
|
22
|
-
|
|
23
|
-
# Gem-specific
|
|
24
|
-
Gemfile.lock
|
|
25
|
-
.idea/
|
|
26
|
-
.ruby-version
|
|
27
|
-
vendor
|
|
28
|
-
|
data/.rubocop.yml
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
AllCops:
|
|
3
|
-
NewCops: enable
|
|
4
|
-
|
|
5
|
-
inherit_from: .rubocop_todo.yml
|
|
6
|
-
|
|
7
|
-
Layout:
|
|
8
|
-
Enabled: true
|
|
9
|
-
|
|
10
|
-
Layout/MultilineOperationIndentation:
|
|
11
|
-
EnforcedStyle: indented
|
|
12
|
-
|
|
13
|
-
Lint:
|
|
14
|
-
Enabled: true
|
|
15
|
-
|
|
16
|
-
Metrics:
|
|
17
|
-
Severity: refactor
|
|
18
|
-
Enabled: false
|
|
19
|
-
|
|
20
|
-
Layout/LineLength:
|
|
21
|
-
Severity: convention
|
|
22
|
-
|
|
23
|
-
Naming:
|
|
24
|
-
Enabled: true
|
|
25
|
-
|
|
26
|
-
Naming/MethodParameterName:
|
|
27
|
-
MinNameLength: 1
|
|
28
|
-
|
|
29
|
-
Security:
|
|
30
|
-
Enabled: true
|
|
31
|
-
|
|
32
|
-
#todo: enable
|
|
33
|
-
Style:
|
|
34
|
-
Enabled: true
|
|
35
|
-
|
|
36
|
-
Style/FormatStringToken:
|
|
37
|
-
Enabled: false
|
|
38
|
-
|
|
39
|
-
Style/IfUnlessModifier:
|
|
40
|
-
Enabled: false
|
|
41
|
-
|
|
42
|
-
#todo: enable
|
|
43
|
-
Style/StringLiterals:
|
|
44
|
-
Enabled: false
|
|
45
|
-
|
|
46
|
-
Style/TrailingCommaInHashLiteral:
|
|
47
|
-
EnforcedStyleForMultiline: comma
|
|
48
|
-
|
|
49
|
-
#todo: enable
|
|
50
|
-
Style/HashSyntax:
|
|
51
|
-
Enabled: false
|
|
52
|
-
|
|
53
|
-
#todo: enable
|
|
54
|
-
Style/FormatString:
|
|
55
|
-
Enabled: false
|
|
56
|
-
|
|
57
|
-
#todo: enable
|
|
58
|
-
Style/ClassVars:
|
|
59
|
-
Enabled: false
|
|
60
|
-
|
|
61
|
-
#todo: enable
|
|
62
|
-
Style/Alias:
|
|
63
|
-
Enabled: false
|
|
64
|
-
|
|
65
|
-
Style/Documentation:
|
|
66
|
-
Enabled: false
|
|
67
|
-
|
|
68
|
-
Bundler:
|
|
69
|
-
Enabled: true
|
|
70
|
-
|
|
71
|
-
Gemspec:
|
|
72
|
-
Enabled: true
|