Thanks for the suggestion, Alex. Unfortunately: 1) The JSON Formatter only dumps data at the end (dump_summary, profile). I'm looking for real time updating to my application that takes data 2) The failing line (information I've come to love when quick looking at failures) isn't included
I certainly looked at the JSON Formatter code to see if I could adapt it for the example_failed notification, but I'm assuming it would hit the same problem of the ANSI being within the failing line. I've looked at a few examples, I'm going to use this regex which hopefully will catch all of my cases \e\[[0-9;]*m notification.message_lines[0].gsub(/\e\[[0-9;]*m/, '') On Friday, September 15, 2017 at 5:21:52 AM UTC-7, Alex Chaffee wrote: > > Also check out the JSON Formatter (--format j) which might be a > cleaner way to export from rspec than digging into the object API. > > https://relishapp.com/rspec/rspec-core/docs/formatters/json-formatter > > https://github.com/rspec/rspec-core/blob/master/lib/rspec/core/formatters/json_formatter.rb > > -- You received this message because you are subscribed to the Google Groups "rspec" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/aa470c2d-bb1d-48ff-8fcf-821c68527d09%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
