minitest-colorin 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/minitest/colorin.rb +10 -10
- data/lib/minitest/colorin/version.rb +1 -1
- data/minitest-colorin.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d050888063e7f336527935d23eca19bae7ed10d
|
4
|
+
data.tar.gz: 9f28268421da917d817e005fb1a4ddfd2732c989
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 805b2fe302a9286977a71da7da52c0e24395aa47b4d066a841e8fe172d5ab84004f94b6831a1c4c5308fa932fc26e028a7601ad0ee0e1599c343dfec6dd7be4a
|
7
|
+
data.tar.gz: ef5ab95f6c5b83a099c25dd6830e04850d14c4ea1ddff80a2de9f9a343f15e1da623ebd207bcb226cf6def14e152b8fdce3c5f52c375b08b1880be0fb77fb022
|
data/lib/minitest/colorin.rb
CHANGED
@@ -34,12 +34,12 @@ module Minitest
|
|
34
34
|
}
|
35
35
|
|
36
36
|
COLORS = {
|
37
|
-
tests: :
|
38
|
-
passed: :
|
39
|
-
failures: :
|
40
|
-
errors: :
|
41
|
-
skips: :
|
42
|
-
assertions: :
|
37
|
+
tests: :blue_a700,
|
38
|
+
passed: :green_500,
|
39
|
+
failures: :red_500,
|
40
|
+
errors: :amber_300,
|
41
|
+
skips: :cyan_300,
|
42
|
+
assertions: :purple_400
|
43
43
|
}
|
44
44
|
|
45
45
|
attr_reader :io, :previous_context, :results, :started_at
|
@@ -67,8 +67,8 @@ module Minitest
|
|
67
67
|
end
|
68
68
|
|
69
69
|
label = colorin(LABELS[result.result_code], GROUPS[result.result_code])
|
70
|
-
number = ::Colorin.
|
71
|
-
time = ::Colorin.
|
70
|
+
number = ::Colorin.grey_600(test_id.number)
|
71
|
+
time = ::Colorin.grey_600("(#{result.time.round(3)}s)")
|
72
72
|
message = case result.result_code
|
73
73
|
when 'S' then colorin(result.failures[0].message, :skips)
|
74
74
|
when 'F' then colorin(relative_path(result.failures[0].location), :failures)
|
@@ -130,13 +130,13 @@ module Minitest
|
|
130
130
|
if group == :errors
|
131
131
|
io.puts colorin("#{indent}#{r.failures[0].exception.class}: #{r.failures[0].exception.message}", group)
|
132
132
|
r.failures[0].backtrace.each do |line|
|
133
|
-
io.puts ::Colorin.
|
133
|
+
io.puts ::Colorin.grey_600("#{indent}#{relative_path(line)}")
|
134
134
|
end
|
135
135
|
else
|
136
136
|
r.failures[0].message.split("\n").each do |line|
|
137
137
|
io.puts colorin("#{indent}#{line}", group)
|
138
138
|
end
|
139
|
-
io.puts ::Colorin.
|
139
|
+
io.puts ::Colorin.grey_600("#{indent}#{relative_path(r.failures[0].location)}")
|
140
140
|
end
|
141
141
|
io.puts if i < group_results.count - 1
|
142
142
|
end
|
data/minitest-colorin.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.require_paths = ['lib']
|
21
21
|
|
22
22
|
spec.add_runtime_dependency 'minitest', '~> 5.0'
|
23
|
-
spec.add_runtime_dependency 'colorin', '~>
|
23
|
+
spec.add_runtime_dependency 'colorin', '~> 2.0'
|
24
24
|
|
25
25
|
spec.add_development_dependency 'bundler', '~> 1.12'
|
26
26
|
spec.add_development_dependency 'rake', '~> 10.0'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-colorin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriel Naiman
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '2.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
|
-
version: '
|
40
|
+
version: '2.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|