Module: RspecProfiling

Defined in:
lib/rspec_profiling.rb,
lib/rspec_profiling/run.rb,
lib/rspec_profiling/config.rb,
lib/rspec_profiling/example.rb,
lib/rspec_profiling/vcs/git.rb,
lib/rspec_profiling/vcs/svn.rb,
lib/rspec_profiling/version.rb,
lib/rspec_profiling/vcs/git_svn.rb,
lib/rspec_profiling/collectors/csv.rb,
lib/rspec_profiling/collectors/sql.rb,
lib/rspec_profiling/collectors/json.rb,
lib/rspec_profiling/collectors/psql.rb

Defined Under Namespace

Modules: Collectors, VCS Classes: Example, Railtie, Run

Constant Summary collapse

VERSION =
"0.0.9"

Class Method Summary collapse

Class Method Details

.configObject



6
7
8
9
10
11
12
13
14
15
# File 'lib/rspec_profiling/config.rb', line 6

def self.config
  @config ||= OpenStruct.new({
    collector:  RspecProfiling::Collectors::CSV,
    vcs:        RspecProfiling::VCS::Git,
    table_name: 'spec_profiling_results',
    events:     [],
    magic_comment: 'team',
    additional_data: {}
  })
end

.configure {|config| ... } ⇒ Object

Yields:



2
3
4
# File 'lib/rspec_profiling/config.rb', line 2

def self.configure
  yield config
end