Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 25 lines (22 sloc) 0.487 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
#!/usr/bin/env rake
require 'rake/testtask'
ENV["TEST_CORES"] = "1"

namespace :test do
  task :isolated do
    Dir["test/assets*_test.rb"].each do |file|
      dash_i = [
        'test',
        'lib',
      ]
      ruby "-I#{dash_i.join ':'}", file
    end
  end
end

Rake::TestTask.new("test:regular") do |t|
  t.libs << 'lib'
  t.libs << 'test'
  t.pattern = 'test/**/sprockets*_test.rb'
  t.verbose = true
end

task :test => ['test:isolated', 'test:regular']
task :default => :test
Something went wrong with that request. Please try again.