minitest-reporters 1.1.10 → 1.1.11.beta1
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: 0810035a0670ed6c243980c0ef5881d31356b325
|
4
|
+
data.tar.gz: ce93adffce1426f7e22eca756cb221c70f3beac2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bdedfff6a331b40bca43ff843772eb9f572cdd7ea8fab589f733f31bfa241f41ad7cab06f179532281f1dc42dbabcdb78f3848506d5d5204a134988e4ae2375
|
7
|
+
data.tar.gz: 779802002e00ea2bbebcd1f5e8f6ec49031ebaa7026e92068500f024f49d1a7428984531651fbcaa881c60bdd85490159491aea51d99faa43ad1093e530f6742
|
@@ -24,6 +24,10 @@ module Minitest
|
|
24
24
|
|
25
25
|
def start
|
26
26
|
super
|
27
|
+
on_start
|
28
|
+
end
|
29
|
+
|
30
|
+
def on_start
|
27
31
|
puts
|
28
32
|
puts("# Running tests with run options %s:" % options[:args])
|
29
33
|
puts
|
@@ -48,6 +52,10 @@ module Minitest
|
|
48
52
|
def record(test)
|
49
53
|
super
|
50
54
|
|
55
|
+
on_record(test)
|
56
|
+
end
|
57
|
+
|
58
|
+
def on_record(test)
|
51
59
|
print "#{"%.2f" % test.time} = " if options[:verbose]
|
52
60
|
|
53
61
|
# Print the pass/skip/fail mark
|
@@ -79,6 +87,10 @@ module Minitest
|
|
79
87
|
|
80
88
|
def report
|
81
89
|
super
|
90
|
+
on_report
|
91
|
+
end
|
92
|
+
|
93
|
+
def on_report
|
82
94
|
status_line = "Finished tests in %.6fs, %.4f tests/s, %.4f assertions/s." %
|
83
95
|
[total_time, count / total_time, assertions / total_time]
|
84
96
|
|
@@ -42,6 +42,8 @@ module Minitest
|
|
42
42
|
# last test run. Defaults to '/tmp/minitest_reporters_report'.
|
43
43
|
# @option show_count [Fixnum] The number of tests to show in the report
|
44
44
|
# summary at the end of the test run. Default is 15.
|
45
|
+
# @option show_progress [Boolean] If true it prints pass/skip/fail marks.
|
46
|
+
# Default is true.
|
45
47
|
# @option sort_column [Symbol] One of :avg (default), :min, :max, :last.
|
46
48
|
# Determines the column by which the report summary is sorted.
|
47
49
|
# @option order [Symbol] One of :desc (default), or :asc. By default the
|
@@ -80,6 +82,18 @@ module Minitest
|
|
80
82
|
write_to_screen!
|
81
83
|
end
|
82
84
|
|
85
|
+
def on_start
|
86
|
+
super if options[:show_progress]
|
87
|
+
end
|
88
|
+
|
89
|
+
def on_record(test)
|
90
|
+
super if options[:show_progress]
|
91
|
+
end
|
92
|
+
|
93
|
+
def on_report
|
94
|
+
super if options[:show_progress]
|
95
|
+
end
|
96
|
+
|
83
97
|
# Resets the 'previous runs' file, essentially removing all previous
|
84
98
|
# statistics gathered.
|
85
99
|
#
|
@@ -106,6 +120,7 @@ module Minitest
|
|
106
120
|
{
|
107
121
|
order: :desc,
|
108
122
|
show_count: 15,
|
123
|
+
show_progress: true,
|
109
124
|
sort_column: :avg,
|
110
125
|
previous_runs_filename: '/tmp/minitest_reporters_previous_run',
|
111
126
|
report_filename: '/tmp/minitest_reporters_report',
|
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.
|
4
|
+
version: 1.1.11.beta1
|
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-28 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: 1.3.1
|
166
166
|
requirements: []
|
167
167
|
rubyforge_project: minitest-reporters
|
168
168
|
rubygems_version: 2.4.5.1
|