rainbow_formatter 0.1.9 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/formatter/version.rb +1 -1
- data/lib/rainbow_formatter.rb +10 -4
- 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: fb882e4ade5af9f67db6f76a4575805620f7ea1999f6f3cc7c54a8489e346951
|
4
|
+
data.tar.gz: 60ea3ace740adb78d4d19d2902cd6836b4a6ed524860eeb205f06c87c236a36c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2cba66eddb3cd8b59eafa647a87fd63297c477a613618b297aa0af9ed44cd750d8ab5e4fcf802f96e660412dd4f9bb83d56f59927eb36cd70ece28ef7ffe4cf7
|
7
|
+
data.tar.gz: 5404888f3d193bb964f6e2bc40c119801efc65cfd5e8ed9c47626d3b2bfe9b9863e4e2f87f8714f3521c3fda503d5e98a17c04ad307557545824590dc40f0de9
|
data/lib/formatter/version.rb
CHANGED
data/lib/rainbow_formatter.rb
CHANGED
@@ -79,13 +79,19 @@ class RainbowFormatter
|
|
79
79
|
tick(mark: FAIL)
|
80
80
|
end
|
81
81
|
|
82
|
+
def dump_failed_summary
|
83
|
+
@failed_examples.each do |n|
|
84
|
+
output.puts "\n-> #{n.description}\n\n"
|
85
|
+
output.puts n.colorized_message_lines
|
86
|
+
output.puts "\n --> Exception backtrace: \n\n"
|
87
|
+
output.puts n.exception.backtrace.join("\n")
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
82
91
|
def dump_summary(notification)
|
83
92
|
duration = notification.duration
|
84
93
|
summary = "\nYou've rainbowified for #{format_duration(duration)}\n".split(//).map { |c| rainbowify(c) }
|
85
|
-
|
86
|
-
puts "\n-> #{n.description}\n\n"
|
87
|
-
puts n.colorized_message_lines
|
88
|
-
end
|
94
|
+
dump_failed_summary
|
89
95
|
output.puts notification.colorized_message_lines if notification.respond_to?(:colorized_message_lines)
|
90
96
|
output.puts summary.join
|
91
97
|
output.puts notification.fully_formatted
|