rearrange things
This commit is contained in:
parent
88dbf97234
commit
2b212a7716
17
lib/rspec-quickfix-formatter/base.rb
Normal file
17
lib/rspec-quickfix-formatter/base.rb
Normal file
@ -0,0 +1,17 @@
|
||||
module QuickFixFormatterBase
|
||||
def dump_summary(duration, example_count, failure_count, pending_count)
|
||||
end
|
||||
|
||||
def dump_profile
|
||||
end
|
||||
|
||||
def dump_pending
|
||||
end
|
||||
|
||||
def dump_failures
|
||||
failed_examples.each do |example|
|
||||
output.puts "%s:%s:%s" % [ example.file_path, example.metadata[:line_number], example.metadata[:execution_result][:exception].message.gsub("\n", ' ') ]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
9
lib/spec/quick_fix_formatter.rb
Normal file
9
lib/spec/quick_fix_formatter.rb
Normal file
@ -0,0 +1,9 @@
|
||||
require 'spec/runner/formatter/base_formatter'
|
||||
require 'rspec-quickfix-formatter/base'
|
||||
|
||||
module Spec::Runner::Formatter
|
||||
class QuickFixFormatter < BaseFormatter
|
||||
include QuickFixFormatterBase
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user