Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Run assets tests isolated

  • Loading branch information...
commit c49340f0d9a6cb4c0760af3f24990fb3390e6138 1 parent f872819
@guilleiguaran guilleiguaran authored
Showing with 15 additions and 3 deletions.
  1. +15 −3 Rakefile
View
18 Rakefile
@@ -1,12 +1,24 @@
#!/usr/bin/env rake
require 'rake/testtask'
-Rake::TestTask.new(:test) do |t|
+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/**/*_test.rb'
+ t.pattern = 'test/**/sprockets*_test.rb'
t.verbose = true
end
-
+task :test => ['test:isolated', 'test:regular']
task :default => :test
Please sign in to comment.
Something went wrong with that request. Please try again.