Rakefile 492 B

1234567891011121314151617181920212223242526
  1. require 'bundler'
  2. Bundler.setup
  3. require 'rake/testtask'
  4. namespace :test do
  5. Rake::TestTask.new(:unit) do |t|
  6. t.libs << 'test'
  7. t.pattern = Dir.glob('test/unit/*_test.rb')
  8. end
  9. Rake::TestTask.new(:integration) do |t|
  10. t.libs << 'test'
  11. t.pattern = Dir.glob('test/integration/*_test.rb')
  12. end
  13. Rake::TestTask.new(:performance) do |t|
  14. t.libs << 'test'
  15. t.pattern = Dir.glob('test/performance/*_test.rb')
  16. end
  17. end
  18. task default: ['test:unit', 'test:integration']