Created
May 12, 2012 22:30
-
-
Save rick/2669497 to your computer and use it in GitHub Desktop.
nescafe formatter for rspec 2.*
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rspec/core/formatters/progress_formatter' | |
class NescafeFormatter < RSpec::Core::Formatters::ProgressFormatter | |
def example_failed(example) | |
super | |
index = failed_examples.size - 1 | |
output.puts "\n" | |
dump_failure(example, index) | |
dump_backtrace(example) | |
output.puts "\n" | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bungle exec rspec --require ./spec/support/formatters/nescafe_formatter.rb -f NescafeFormatter spec |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment