Sha256: 882e494b9308e859cf995f59a0ccc472145bec584db0fa669934687f7ce5862c

Contents?: true

Size: 1012 Bytes

Versions: 42

Compression:

Stored size: 1012 Bytes

Contents

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

SimpleCov.configure do
  # ignore this file
  add_filter '.simplecov'
  add_filter 'spec'
  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

Version data entries

42 entries across 42 versions & 2 rubygems

Version Path
aruba-0.14.14 .simplecov
aruba-0.14.13 .simplecov
aruba-1.0.0.pre.alpha.5 .simplecov
aruba-0.14.12 .simplecov
aruba-0.14.11 .simplecov
aruba-0.14.10 .simplecov
aruba-1.0.0.pre.alpha.4 .simplecov
aruba-1.0.0.pre.alpha.3 .simplecov
aruba-0.14.9 .simplecov
aruba-0.14.8 .simplecov
aruba-0.14.7 .simplecov
aruba-0.14.6 .simplecov
aruba-0.14.5 .simplecov
aruba-0.14.4 .simplecov
aruba-0.14.3 .simplecov
aruba-1.0.0.pre.alpha.2 .simplecov
aruba-1.0.0.pre.alpha.1 .simplecov
aruba-win-fix-0.14.2 .simplecov
aruba-0.14.2 .simplecov
aruba-0.14.1 .simplecov