lib/gurke/runner.rb in gurke-2.1.0 vs lib/gurke/runner.rb in gurke-2.2.1
- old
+ new
@@ -6,10 +6,13 @@
@config = config
@options = options
end
def reporter
- @reporter ||= Reporters::DefaultReporter.new
+ @reporter ||= begin
+ r = (options[:formatter] + '_reporter').split('_').map(&:capitalize).join
+ Reporters.const_get(r).new
+ end
end
def builder
@builder ||= Builder.new
end