minitest-reporters 0.14.19 → 0.14.20
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MjczY2M5MTQ0N2QxMTE4MTAyZWVkOGY4YTgxMDNjN2YyMTk0MTU0Yw==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ZWIyYTZjNmY1ODRjYjQ1MTQ4NjY2OWU0ZjIwZmEzZmM1NzM0YzUyYQ==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
OTRlYjVlY2Q2NmVlOTZmNTBiNjE3ZWVmYjIxMmYyZDQ0ZWIxMTA0N2NlYzY1
|
10
|
+
ZDAxMGI2MmUwYjFjNjY3Y2Y0ZTVhZTY5NDNjYWI2ODgzMTIwYTU2YjliY2Jm
|
11
|
+
NDI4NjBlZGQ0MGZlZDVjYjFhZGFhYjc5NDllZDdlOGJlZmU5YTc=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
OTgyOWMxNGFiZmZiYWI0NzVlNzc0ODM4ZDYwMTllMDRkNGZlNmQzYzNiNDky
|
14
|
+
NmNiZjc0MjliOTA1OTYwZjc2ZDY1ZDI1NDJjMzhmN2E2NTg2OTc4NmZhNjUx
|
15
|
+
M2E3YzE5ZjQ2NjIzN2RiZDA0Mjg1ODRkYTE4ZjgwNGFiYmU1ZjU=
|
data/Rakefile
CHANGED
@@ -111,7 +111,7 @@ module MiniTest
|
|
111
111
|
|
112
112
|
def filename_for(suite)
|
113
113
|
file_counter = 0
|
114
|
-
filename = "TEST-#{suite.to_s[0..240]}.xml" #restrict max filename length, to be kind to filesystems
|
114
|
+
filename = "TEST-#{suite.to_s[0..240].gsub(/[^a-zA-Z0-9]+/, '-')}.xml" #restrict max filename length, to be kind to filesystems
|
115
115
|
while File.exists?(File.join(@reports_path, filename)) # restrict number of tries, to avoid infinite loops
|
116
116
|
file_counter += 1
|
117
117
|
filename = "TEST-#{suite}-#{file_counter}.xml"
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# This is a test for a bug that was happening when the JUnit Reporter was
|
2
|
+
# creating filenames from `describe`s that contained slashes, which would crash
|
3
|
+
# since it was trying to create directories then.
|
4
|
+
|
5
|
+
require 'bundler/setup'
|
6
|
+
require 'minitest/autorun'
|
7
|
+
require 'minitest/reporters'
|
8
|
+
|
9
|
+
MiniTest::Reporters.use! MiniTest::Reporters::JUnitReporter.new
|
10
|
+
|
11
|
+
describe 'something/other' do
|
12
|
+
it 'does something' do
|
13
|
+
1.must_equal 1
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require_relative "../../test_helper"
|
2
|
+
|
3
|
+
module MiniTestReportersTest
|
4
|
+
class JUnitReporterTest < TestCase
|
5
|
+
def test_replaces_special_characters_for_filenames_and_doesnt_crash
|
6
|
+
fixtures_directory = File.expand_path('../../fixtures', __FILE__)
|
7
|
+
test_filename = File.join(fixtures_directory, 'junit_filename_bug_example_test.rb')
|
8
|
+
output = `ruby #{test_filename} 2>&1`
|
9
|
+
refute_match 'No such file or directory', output
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
metadata
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-reporters
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Kern
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-05-
|
11
|
+
date: 2013-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - '>='
|
17
|
+
- - ! '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '2.12'
|
20
20
|
- - <
|
@@ -24,7 +24,7 @@ dependencies:
|
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- - '>='
|
27
|
+
- - ! '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '2.12'
|
30
30
|
- - <
|
@@ -34,70 +34,70 @@ dependencies:
|
|
34
34
|
name: ansi
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - '>='
|
37
|
+
- - ! '>='
|
38
38
|
- !ruby/object:Gem::Version
|
39
39
|
version: '0'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
|
-
- - '>='
|
44
|
+
- - ! '>='
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '0'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: powerbar
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- - '>='
|
51
|
+
- - ! '>='
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: '0'
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
|
-
- - '>='
|
58
|
+
- - ! '>='
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '0'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: builder
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
|
-
- - '>='
|
65
|
+
- - ! '>='
|
66
66
|
- !ruby/object:Gem::Version
|
67
67
|
version: '0'
|
68
68
|
type: :runtime
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
|
-
- - '>='
|
72
|
+
- - ! '>='
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: maruku
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
|
-
- - '>='
|
79
|
+
- - ! '>='
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: '0'
|
82
82
|
type: :development
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
|
-
- - '>='
|
86
|
+
- - ! '>='
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '0'
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
90
|
name: rake
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
|
-
- - '>='
|
93
|
+
- - ! '>='
|
94
94
|
- !ruby/object:Gem::Version
|
95
95
|
version: '0'
|
96
96
|
type: :development
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
|
-
- - '>='
|
100
|
+
- - ! '>='
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: '0'
|
103
103
|
description: Death to haphazard monkey-patching! Extend MiniTest through simple hooks.
|
@@ -134,6 +134,8 @@ files:
|
|
134
134
|
- minitest-reporters.gemspec
|
135
135
|
- test/gallery/bad_test.rb
|
136
136
|
- test/gallery/good_test.rb
|
137
|
+
- test/integration/fixtures/junit_filename_bug_example_test.rb
|
138
|
+
- test/integration/reporters/junit_reporter_test.rb
|
137
139
|
- test/test_helper.rb
|
138
140
|
- test/unit/minitest/extensible_backtrace_filter_test.rb
|
139
141
|
- test/unit/minitest/reporter_test.rb
|
@@ -147,24 +149,18 @@ require_paths:
|
|
147
149
|
- lib
|
148
150
|
required_ruby_version: !ruby/object:Gem::Requirement
|
149
151
|
requirements:
|
150
|
-
- - '>='
|
152
|
+
- - ! '>='
|
151
153
|
- !ruby/object:Gem::Version
|
152
154
|
version: '0'
|
153
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
154
156
|
requirements:
|
155
|
-
- - '>='
|
157
|
+
- - ! '>='
|
156
158
|
- !ruby/object:Gem::Version
|
157
159
|
version: '0'
|
158
160
|
requirements: []
|
159
161
|
rubyforge_project: minitest-reporters
|
160
|
-
rubygems_version: 2.0.
|
162
|
+
rubygems_version: 2.0.3
|
161
163
|
signing_key:
|
162
164
|
specification_version: 4
|
163
165
|
summary: Create customizable MiniTest output formats
|
164
|
-
test_files:
|
165
|
-
- test/gallery/bad_test.rb
|
166
|
-
- test/gallery/good_test.rb
|
167
|
-
- test/test_helper.rb
|
168
|
-
- test/unit/minitest/extensible_backtrace_filter_test.rb
|
169
|
-
- test/unit/minitest/reporter_test.rb
|
170
|
-
- test/unit/minitest/reporters_test.rb
|
166
|
+
test_files: []
|