Sha256: 9d26680ffa8874bdc7e6c6a1a0a2ecf68ad19893a71ac3f00aad18aacdf1075a

Contents?: true

Size: 1.02 KB

Versions: 3

Compression:

Stored size: 1.02 KB

Contents

SimpleCov.configure do
  # Activate branch coverage
  enable_coverage :branch

  # ignore this file
  add_filter '.simplecov'
  add_filter 'features'

  # Rake tasks aren't tested with rspec
  add_filter 'Rakefile'
  add_filter 'lib/tasks'

  #
  # Changed Files in Git Group
  # @see http://fredwu.me/post/35625566267/simplecov-test-coverage-for-changed-files-only
  untracked         = `git ls-files --exclude-standard --others`
  unstaged          = `git diff --name-only`
  staged            = `git diff --name-only --cached`
  all               = untracked + unstaged + staged
  changed_filenames = all.split("\n")

  add_group 'Changed' do |source_file|
    changed_filenames.select do |changed_filename|
      source_file.filename.end_with?(changed_filename)
    end
  end

  add_group 'Libraries', 'lib'

  # Specs are reported on to ensure that all examples are being run and all
  # lets, befores, afters, etc are being used.
  add_group 'Specs', 'spec/'
end

# Run simplecov by default
SimpleCov.start unless ENV.key? 'ARUBA_NO_COVERAGE'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
aruba-1.0.2 .simplecov
aruba-1.0.1 .simplecov
aruba-1.0.0 .simplecov