module SimpleCov
def start(adapter=nil, &block)
Please check out the RDoc for SimpleCov::Configuration to find about available config options
end
add_filter 'test'
SimpleCov.start 'rails' do
OR
end
add_filter 'test'
SimpleCov.start do
OR
SimpleCov.start 'rails' # using rails adapter
OR
SimpleCov.start
You can optionally specify an adapter to use as well as configuration with a block:
Sets up SimpleCov to run against your project.
def start(adapter=nil, &block) return false unless SimpleCov.usable? require 'coverage' load_adapter(adapter) unless adapter.nil? Coverage.start configure(&block) if block_given? @result = nil self.running = true end