minitest-heat 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/minitest/heat/issue.rb +2 -2
- data/lib/minitest/heat/output/issue.rb +15 -19
- data/lib/minitest/heat/output/map.rb +1 -1
- data/lib/minitest/heat/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d95ecb7dad79fef49909bf766fb8c428489a71a0a2a50f815e4f0e7b0dbe480b
|
4
|
+
data.tar.gz: f9e03a7fcb915c0f5f0e74eb20fb7cec2d65de7e4d73f6130b61d50d48d8fafc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9903cc0ea5edb14005ddcef3027ea09414100013f3e829989670a238bce2c2bd02b0227835632658022b82fff658d86dcab07aa58c7ddecdfb2452408258f97
|
7
|
+
data.tar.gz: 2ea218a55b33d8ba6fdb41f8aa3ef7d07443537e482a2a995a7aad2c01fc952c22135263739aa0963d9e0e88a153ffd146ac32e4a9979c5a32ccf218391f66cf
|
data/Gemfile.lock
CHANGED
data/lib/minitest/heat/issue.rb
CHANGED
@@ -79,7 +79,7 @@ module Minitest
|
|
79
79
|
end
|
80
80
|
|
81
81
|
def headline_tokens
|
82
|
-
[
|
82
|
+
[label_token(issue), spacer_token, [:default, test_name(issue)]]
|
83
83
|
end
|
84
84
|
|
85
85
|
def test_name(issue)
|
@@ -93,24 +93,20 @@ module Minitest
|
|
93
93
|
end
|
94
94
|
end
|
95
95
|
|
96
|
-
def
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
elsif !issue.passed?
|
111
|
-
'Failure'
|
112
|
-
else
|
113
|
-
'Success'
|
96
|
+
def label_token(issue)
|
97
|
+
[issue.type, issue_label(issue.type)]
|
98
|
+
end
|
99
|
+
|
100
|
+
def issue_label(issue_type)
|
101
|
+
case issue_type
|
102
|
+
when :error then 'Error'
|
103
|
+
when :broken then 'Broken Test'
|
104
|
+
when :failure then 'Failure'
|
105
|
+
when :skipped then 'Skipped'
|
106
|
+
when :slow then 'Passed but Slow'
|
107
|
+
when :painful then 'Passed but Very Slow'
|
108
|
+
when :passed then 'Success'
|
109
|
+
else 'Unknown'
|
114
110
|
end
|
115
111
|
end
|
116
112
|
|
@@ -58,7 +58,7 @@ module Minitest
|
|
58
58
|
[:muted, ':'],
|
59
59
|
[:default, location.line_number],
|
60
60
|
[:muted, " in #{location.container}"],
|
61
|
-
[:muted, " #{Output::SYMBOLS[:arrow]}
|
61
|
+
[:muted, " #{Output::SYMBOLS[:arrow]} `#{location.source_code.line.strip}`"],
|
62
62
|
]
|
63
63
|
end
|
64
64
|
|