Sha256: 6246628dfcabe2bec8c49efbaf7f8286de8eab94b2bf2654e76edb6c09d34df9

Contents?: true

Size: 800 Bytes

Versions: 7

Compression:

Stored size: 800 Bytes

Contents

# frozen_string_literal: true

require 'bundler/gem_tasks'
require 'rake/testtask'

::Rake::TestTask.new(:test) do |t|
  t.libs << 'lib'
  t.libs << 'test'
  t.libs << 'test/fixtures'
  # ignore tests of rails apps
  t.test_files = ::FileList['test/**/*_test.rb'] - ::FileList['test/dummy/**/*_test.rb']
end

::Rake::TestTask.new('test:unit') do |t|
  t.libs << 'lib'
  t.libs << 'test'
  t.libs << 'test/fixtures'
  # ignore tests of rails apps
  t.test_files = ::FileList['test/unit/**/*_test.rb']
end

::Rake::TestTask.new('test:integration') do |t|
  t.libs << 'lib'
  t.libs << 'test'
  t.libs << 'test/fixtures'
  # ignore tests of rails apps
  t.test_files = ::FileList['test/integration/**/*_test.rb']
end

require 'rubocop/rake_task'

::RuboCop::RakeTask.new

task default: %i[test rubocop]

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
amber_component-1.2.0 Rakefile
amber_component-1.1.1 Rakefile
amber_component-1.1.0 Rakefile
amber_component-1.0.0 Rakefile
amber_component-0.0.5 Rakefile
amber_component-0.0.4 Rakefile
amber_component-0.0.3 Rakefile