Class: SimpleCov::Profiles
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Hash
|
|
Instance Chain:
self,
Hash
|
|
Inherits: |
Hash
|
Defined in: | lib/simplecov/profiles.rb |
Overview
Profiles
are ::SimpleCov
configuration procs that can be easily loaded using start :rails
and defined using
SimpleCov.profiles.define :foo do
# SimpleCov configuration here, same as in SimpleCov.configure
end
Instance Method Summary
-
#define(name, &blk)
Define a
::SimpleCov
profile: -
#load(name)
Applies the profile of given name on
SimpleCov.configure
Instance Method Details
#define(name, &blk)
Define a ::SimpleCov
profile:
SimpleCov.profiles.define 'rails' do
# Same as SimpleCov.configure do .. here
end
# File 'lib/simplecov/profiles.rb', line 18
def define(name, &blk) name = name.to_sym raise "SimpleCov Profile '#{name}' is already defined" unless self[name].nil? self[name] = blk end
#load(name)
Applies the profile of given name on SimpleCov.configure