rainbow_formatter 0.1.9 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b0b8f5f1fc172c2e20cbcbfad5e0285802805f47d7155f35a66b4798990e4de0
4
- data.tar.gz: faf7c6fc3fcbfad3373a16cf867c4c73bad130e87d90d9275e61487dd7bbe8cd
3
+ metadata.gz: fb882e4ade5af9f67db6f76a4575805620f7ea1999f6f3cc7c54a8489e346951
4
+ data.tar.gz: 60ea3ace740adb78d4d19d2902cd6836b4a6ed524860eeb205f06c87c236a36c
5
5
  SHA512:
6
- metadata.gz: 1b712319820b33987c2bca3e46fde8b141cf5f9e1c129f11d1c825168ad5f107a3bf6d3f00502723b93e904612a681451bd11f5d925df2eee7e9248e07e42773
7
- data.tar.gz: c179cc65a2c8a702f24c26d2605a53ec513398d07819ad40d5ffc3183d45febbcd8c77b8578ff648439f4f04355775b83deb9202661160da1135b37d34f63e89
6
+ metadata.gz: 2cba66eddb3cd8b59eafa647a87fd63297c477a613618b297aa0af9ed44cd750d8ab5e4fcf802f96e660412dd4f9bb83d56f59927eb36cd70ece28ef7ffe4cf7
7
+ data.tar.gz: 5404888f3d193bb964f6e2bc40c119801efc65cfd5e8ed9c47626d3b2bfe9b9863e4e2f87f8714f3521c3fda503d5e98a17c04ad307557545824590dc40f0de9
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Formatter
4
- VERSION = '0.1.9'
4
+ VERSION = '0.2.0'
5
5
  end
@@ -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
- @failed_examples.each do |n|
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rainbow_formatter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Federico Farina