lib/minitest/reporters/html_reporter.rb in minitest-reporters-1.1.13 vs lib/minitest/reporters/html_reporter.rb in minitest-reporters-1.1.14
- old
+ new
@@ -71,9 +71,13 @@
@erb_template = settings[:erb_template]
@output_filename = settings[:output_filename]
reports_dir = settings[:reports_dir]
@reports_path = File.absolute_path(reports_dir)
+ end
+
+ def start
+ super
puts "Emptying #{@reports_path}"
FileUtils.mkdir_p(@reports_path)
File.delete(html_file) if File.exist?(html_file)
end