Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pivotal-legacy/28987 to your computer and use it in GitHub Desktop.
Save pivotal-legacy/28987 to your computer and use it in GitHub Desktop.
require Spec::Runner::Options::EXAMPLE_FORMATTERS["profile"].first
Spec::Runner::Formatter::ProgressBarFormatter.class_eval do
def example_failed(example, counter, failure)
@output.print colourise('F', failure)
exception = failure.exception
@output.print "\n#{exception.message}\n#{exception.backtrace.join("\n\t")}\n"
@output.flush
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment