minitest-reporters 1.1.11.beta1 → 1.1.11
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88d6126ca997acbf677b531e44849c74d37af66b
|
4
|
+
data.tar.gz: 24a96027c20c449926bbf346989d99ad7353c81d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e9f3a0c9a8245b1ff5b1d0767c635aa88410129cc601d8d9e2bfb4384227c084ceb4e902dae25dc961c7a27a934b3687ac6762dd1d3a47fbbb0e7be1ed2da66
|
7
|
+
data.tar.gz: d66a69f5e620abdb0ac9ea4b762ece8220e8a248b36badb681a6a79c9d9aa3f8d8762ae545bfd120b76dc8d363a57bade6dc0d5f663dfb914fa9719f81d4cb9e
|
@@ -44,6 +44,8 @@ module Minitest
|
|
44
44
|
# summary at the end of the test run. Default is 15.
|
45
45
|
# @option show_progress [Boolean] If true it prints pass/skip/fail marks.
|
46
46
|
# Default is true.
|
47
|
+
# @option show_all_runs [Boolean] If true it shows all recorded suit results.
|
48
|
+
# Default is true.
|
47
49
|
# @option sort_column [Symbol] One of :avg (default), :min, :max, :last.
|
48
50
|
# Determines the column by which the report summary is sorted.
|
49
51
|
# @option order [Symbol] One of :desc (default), or :asc. By default the
|
@@ -121,6 +123,7 @@ module Minitest
|
|
121
123
|
order: :desc,
|
122
124
|
show_count: 15,
|
123
125
|
show_progress: true,
|
126
|
+
show_all_runs: true,
|
124
127
|
sort_column: :avg,
|
125
128
|
previous_runs_filename: '/tmp/minitest_reporters_previous_run',
|
126
129
|
report_filename: '/tmp/minitest_reporters_report',
|
@@ -168,7 +171,9 @@ module Minitest
|
|
168
171
|
# @return [Array<Hash<Symbol => String>>] All of the results sorted by
|
169
172
|
# the :sort_column option. (Defaults to :avg).
|
170
173
|
def column_sorted_body
|
171
|
-
|
174
|
+
runs = options[:show_all_runs] ? previous_run : current_run
|
175
|
+
runs.keys.each_with_object([]) do |description, obj|
|
176
|
+
timings = previous_run[description]
|
172
177
|
size = Array(timings).size
|
173
178
|
sum = Array(timings).inject { |total, x| total + x }
|
174
179
|
obj << {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-reporters
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.11
|
4
|
+
version: 1.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Kern
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -160,9 +160,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
160
160
|
version: 1.9.3
|
161
161
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
162
162
|
requirements:
|
163
|
-
- - "
|
163
|
+
- - ">="
|
164
164
|
- !ruby/object:Gem::Version
|
165
|
-
version:
|
165
|
+
version: '0'
|
166
166
|
requirements: []
|
167
167
|
rubyforge_project: minitest-reporters
|
168
168
|
rubygems_version: 2.4.5.1
|