class SimpleCov::Formatter::SublimeFormatter
Formats Simplecov Results into a json file `coverage.json`
@author Mikael Henriksson <mikael@mhenrixon.se>
Constants
- FILE_NAME
@return [String] name of the file with coverage.json data
- OUTPUT_FILE_PATH
Public Instance Methods
format(result)
click to toggle source
Formats the result as a hash, dump it to json with JSON and then save it to disk
@param [SimpleCov::Result] result
@return [<type>] <description>
# File lib/simple_cov/formatter/sublime_formatter.rb, line 25 def format(result) json = SimpleCov::FormatResult.call(result, OUTPUT_FILE_PATH) puts SimpleCov::Sublime::OutputMessage.new(result, OUTPUT_FILE_PATH) json end