diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-11-10 16:50:15 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-11-10 16:50:15 -0800 |
commit | bbb3e5a858b2d078b2af7516a583fa12f3edb565 (patch) | |
tree | 980814745eb39f4a771a50ee8b3c3947f8485c17 /railties | |
parent | e02bff2634d94c07780884cae83b258d3f3a9a0e (diff) | |
download | rails-bbb3e5a858b2d078b2af7516a583fa12f3edb565.tar.gz rails-bbb3e5a858b2d078b2af7516a583fa12f3edb565.tar.bz2 rails-bbb3e5a858b2d078b2af7516a583fa12f3edb565.zip |
Unify test:isolated across components and run by default at toplevel
Diffstat (limited to 'railties')
-rw-r--r-- | railties/Rakefile | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/railties/Rakefile b/railties/Rakefile index 1280ad7f06..e6f698fc74 100644 --- a/railties/Rakefile +++ b/railties/Rakefile @@ -22,21 +22,23 @@ RUBY_FORGE_USER = "webster132" task :default => :test +task :test => 'test:isolated' ## This is required until the regular test task ## below passes. It's not ideal, but at least ## we can see the failures -task :test do - dir = ENV["TEST_DIR"] || "**" - Dir["test/#{dir}/*_test.rb"].all? do |file| - next true if file.include?("fixtures") - ruby = File.join(*RbConfig::CONFIG.values_at('bindir', 'RUBY_INSTALL_NAME')) - system(ruby, '-Itest', "-I#{File.dirname(__FILE__)}/../activesupport/lib", file) - end or raise "Failures" +namespace :test do + task :isolated do + dir = ENV["TEST_DIR"] || "**" + Dir["test/#{dir}/*_test.rb"].all? do |file| + next true if file.include?("fixtures") + ruby = File.join(*RbConfig::CONFIG.values_at('bindir', 'RUBY_INSTALL_NAME')) + system(ruby, '-Itest', "-I#{File.dirname(__FILE__)}/../activesupport/lib", file) + end or raise "Failures" + end end -task :isolated_test => :test -Rake::TestTask.new("regular_test") do |t| +Rake::TestTask.new('test:regular') do |t| t.libs << 'test' << "#{File.dirname(__FILE__)}/../activesupport/lib" t.pattern = 'test/**/*_test.rb' t.warning = true |