diff --git a/lib/hydra/listener/cucumber_html_report.rb b/lib/hydra/listener/cucumber_html_report.rb
index a2f43d2..9b74e35 100644
--- a/lib/hydra/listener/cucumber_html_report.rb
+++ b/lib/hydra/listener/cucumber_html_report.rb
@@ -10,9 +10,10 @@ module Hydra #:nodoc:
end
class CombineHtml
- def initialize
+ def initialize(output_file = nil)
@results_path = File.join(Dir.pwd, 'results')
- @io = File.open(File.join(@results_path, 'report.html'), "w")
+ output_file = File.join(@results_path, 'html/index.html') if output_file.nil?
+ @io = File.open(output_file, "w")
@builder = create_builder(@io)
end