Sha256: 29cf6784fb552e1d9d4e09420b30e1ac2c6489f1c78ff378a4dea244bb75745d

Contents?: true

Size: 1.26 KB

Versions: 3

Compression:

Stored size: 1.26 KB

Contents

# Must be the first module imported at entry points (executables that run
# in seperate processes from the test harness) otherwise coverage will be
# incomplete

require 'simplecov'
SimpleCov.start 'rails' do
  coverage_dir 'test/coverage/'
  command_name 'Console tests'

  # Filters - these files will be ignored.
  add_filter 'app/models/rest_api/railties'

  merge_timeout 1000

  # Groups - general categories of test areas
  #add_group('Controllers') { |src_file| src_file.filename.include?(File.join(%w[lib rhc commands])) }
  #add_group('REST API')    { |src_file| src_file.filename.include?(File.join(%w[lib rhc])) }
  #add_group('REST')        { |src_file| src_file.filename.include?(File.join(%w[lib rhc/rest])) }  
  #add_group('Legacy')      { |src_file| src_file.filename.include?(File.join(%w[bin])) or
  #                                      src_file.filename.include?(File.join(%w[lib rhc-common.rb])) }
  #add_group('Test')        { |src_file| src_file.filename.include?(File.join(%w[features])) or
  #                                      src_file.filename.include?(File.join(%w[spec])) }

  #use_merging = true
  # Note, the #:nocov: coverage exclusion  should only be used on external functions 
  #  that cannot be nondestructively tested in a developer environment.
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
openshift-origin-console-1.3.4 test/coverage_helper.rb
openshift-origin-console-1.3.3 test/coverage_helper.rb
openshift-origin-console-1.3.2 test/coverage_helper.rb