mirror of
https://github.com/ditkrg/simplecov-json.git
synced 2026-01-22 22:06:46 +00:00
extract File.join(output_path, output_file_name) to existing method
This commit is contained in:
parent
483350ac9a
commit
eb44a4920f
@ -22,7 +22,8 @@ class SimpleCov::Formatter::JSONFormatter
|
|||||||
covered_lines: result.covered_lines,
|
covered_lines: result.covered_lines,
|
||||||
total_lines: result.total_lines,
|
total_lines: result.total_lines,
|
||||||
}
|
}
|
||||||
File.open(File.join(output_path, output_filename), "w+") do |file|
|
|
||||||
|
File.open(output_filepath, "w+") do |file|
|
||||||
file.puts data.to_json
|
file.puts data.to_json
|
||||||
end
|
end
|
||||||
puts output_message(result)
|
puts output_message(result)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user