minitest-reporters 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/lib/minitest/reporters/default_reporter.rb +27 -3
- data/lib/minitest/reporters/progress_reporter.rb +2 -4
- data/lib/minitest/reporters/version.rb +1 -1
- metadata +21 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06177a8caff2d0f38b5c21fdb58d4012de8ab796
|
4
|
+
data.tar.gz: 2ba0a7fe3f56ccf8100307da50f2f4424ed7d47e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4be47d313c036594919269a4cd10e22e95d66875a59fabe26a71c2e9b4a4aa5f9347aafceb4f373387a40a5dec754559339b71beb5dbf08481d50cc9a89b834
|
7
|
+
data.tar.gz: 6aed137329cd1bc269463cea0f4dba27c51d3ccaf7be9d413636e219b551fdd8dda7cd64f05fa2cca2f4f4e73e18e58d01e94a9fd347427912449565a532db8a
|
data/.travis.yml
CHANGED
@@ -16,6 +16,8 @@ module Minitest
|
|
16
16
|
@detailed_skip = options.fetch(:detailed_skip, true)
|
17
17
|
@slow_count = options.fetch(:slow_count, 0)
|
18
18
|
@slow_suite_count = options.fetch(:slow_suite_count, 0)
|
19
|
+
@suite_times = []
|
20
|
+
@suite_start_times = {}
|
19
21
|
@fast_fail = options.fetch(:fast_fail, false)
|
20
22
|
@options = options
|
21
23
|
end
|
@@ -32,17 +34,27 @@ module Minitest
|
|
32
34
|
print "\n#{test.class}##{test.name} " if options[:verbose]
|
33
35
|
end
|
34
36
|
|
37
|
+
def before_suite(suite)
|
38
|
+
@suite_start_times[suite] = Time.now
|
39
|
+
super
|
40
|
+
end
|
41
|
+
|
42
|
+
def after_suite(suite)
|
43
|
+
super
|
44
|
+
@suite_times << [suite.name, Time.now - @suite_start_times.delete(suite)]
|
45
|
+
end
|
46
|
+
|
35
47
|
def record(test)
|
36
48
|
super
|
37
49
|
|
38
50
|
print "#{"%.2f" % test.time} = " if options[:verbose]
|
39
51
|
|
40
52
|
print(if test.passed?
|
41
|
-
|
53
|
+
record_pass(test)
|
42
54
|
elsif test.skipped?
|
43
|
-
|
55
|
+
record_skip(test)
|
44
56
|
elsif test.failure
|
45
|
-
|
57
|
+
record_failure(test)
|
46
58
|
end)
|
47
59
|
|
48
60
|
if @fast_fail && (test.skipped? || test.failure)
|
@@ -51,6 +63,18 @@ module Minitest
|
|
51
63
|
end
|
52
64
|
end
|
53
65
|
|
66
|
+
def record_pass(test)
|
67
|
+
green('.')
|
68
|
+
end
|
69
|
+
|
70
|
+
def record_skip(test)
|
71
|
+
yellow('S')
|
72
|
+
end
|
73
|
+
|
74
|
+
def record_failure(test)
|
75
|
+
red('F')
|
76
|
+
end
|
77
|
+
|
54
78
|
def report
|
55
79
|
super
|
56
80
|
status_line = "Finished tests in %.6fs, %.4f tests/s, %.4f assertions/s." %
|
@@ -35,6 +35,7 @@ module Minitest
|
|
35
35
|
puts 'Started'
|
36
36
|
puts
|
37
37
|
@progress.start
|
38
|
+
@progress.total = total_count
|
38
39
|
show
|
39
40
|
end
|
40
41
|
|
@@ -73,10 +74,7 @@ module Minitest
|
|
73
74
|
private
|
74
75
|
|
75
76
|
def show
|
76
|
-
|
77
|
-
|
78
|
-
@progress.total = total_count
|
79
|
-
@progress.increment
|
77
|
+
@progress.increment unless count == 0
|
80
78
|
end
|
81
79
|
|
82
80
|
def print_test_with_time(test)
|
metadata
CHANGED
@@ -1,97 +1,97 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-reporters
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Kern
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05
|
11
|
+
date: 2014-07-05 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: '5.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '5.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: ansi
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: ruby-progressbar
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: builder
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: maruku
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rake
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
description: Death to haphazard monkey-patching! Extend Minitest through simple hooks.
|
@@ -101,10 +101,10 @@ executables: []
|
|
101
101
|
extensions: []
|
102
102
|
extra_rdoc_files: []
|
103
103
|
files:
|
104
|
-
- .gitignore
|
105
|
-
- .ruby-gemset
|
106
|
-
- .travis.yml
|
107
|
-
- .yardopts
|
104
|
+
- ".gitignore"
|
105
|
+
- ".ruby-gemset"
|
106
|
+
- ".travis.yml"
|
107
|
+
- ".yardopts"
|
108
108
|
- Gemfile
|
109
109
|
- LICENSE
|
110
110
|
- README.md
|
@@ -142,17 +142,17 @@ require_paths:
|
|
142
142
|
- lib
|
143
143
|
required_ruby_version: !ruby/object:Gem::Requirement
|
144
144
|
requirements:
|
145
|
-
- -
|
145
|
+
- - ">="
|
146
146
|
- !ruby/object:Gem::Version
|
147
147
|
version: '0'
|
148
148
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- -
|
150
|
+
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
153
|
requirements: []
|
154
154
|
rubyforge_project: minitest-reporters
|
155
|
-
rubygems_version: 2.
|
155
|
+
rubygems_version: 2.2.2
|
156
156
|
signing_key:
|
157
157
|
specification_version: 4
|
158
158
|
summary: Create customizable Minitest output formats
|