class SimpleCov::Profiles
end
# SimpleCov configuration here, same as in SimpleCov.configure
SimpleCov.profiles.define :foo do
loaded using SimpleCov.start :rails and defined using
Profiles are SimpleCov configuration procs that can be easily
def define(name, &blk)
end
# Same as SimpleCov.configure do .. here
SimpleCov.profiles.define 'rails' do
Define a SimpleCov profile:
def define(name, &blk) name = name.to_sym raise "SimpleCov Profile '#{name}' is already defined" unless self[name].nil? self[name] = blk end
def load(name)
Applies the profile of given name on SimpleCov.configure
def load(name) name = name.to_sym raise "Could not find SimpleCov Profile called '#{name}'" unless key?(name) SimpleCov.configure(&self[name]) end