lib/simplecov-json.rb in simplecov-json-0.2 vs lib/simplecov-json.rb in simplecov-json-0.2.1
- old
+ new
@@ -11,10 +11,10 @@
result.files.each do |sourceFile|
next unless result.filenames.include? sourceFile.filename
data[:files] << {
filename: sourceFile.filename,
covered_percent: sourceFile.covered_percent,
- coverage: sourceFile.coverage,
+ coverage: sourceFile.coverage_data,
covered_strength: sourceFile.covered_strength.nan? ? 0.0 : sourceFile.covered_strength,
covered_lines: sourceFile.covered_lines.count,
lines_of_code: sourceFile.lines_of_code,
}
end