Sha256: 5c6e9c54a6ac034966d67a4a36fd295b34eafe0a67c1a888d9911c57d22f5ee1
Contents?: true
Size: 496 Bytes
Versions: 71
Compression:
Stored size: 496 Bytes
Contents
# # A ridiculously simple formatter for SimpleCov results. # class SimpleCov::Formatter::SimpleFormatter # Takes a SimpleCov::Result and generates a string out of it def format(result) output = "" result.groups.each do |name, files| output << "Group: #{name}\n" output << "="*40 output << "\n" files.each do |file| output << "#{file.filename} (coverage: #{file.covered_percent.round(2)}%)\n" end output << "\n" end output end end
Version data entries
71 entries across 53 versions & 7 rubygems