diff options
| author | Godfrey Chan <godfreykfc@gmail.com> | 2014-09-15 08:57:58 +0800 |
|---|---|---|
| committer | Godfrey Chan <godfreykfc@gmail.com> | 2014-09-15 08:57:58 +0800 |
| commit | a3a8a691b2a826f19d71780b1ba9ffac15eb4f89 (patch) | |
| tree | d305a9574b960e0bab74db2e7d90229c685553a5 /railties/lib/rails/test_unit/testing.rake | |
| parent | 8a47e872671a331bda634ee8e9f886b8089a8754 (diff) | |
| parent | 14f07fdc070c14bc68daa863098d24c561dce49b (diff) | |
| download | rails-a3a8a691b2a826f19d71780b1ba9ffac15eb4f89.tar.gz rails-a3a8a691b2a826f19d71780b1ba9ffac15eb4f89.tar.bz2 rails-a3a8a691b2a826f19d71780b1ba9ffac15eb4f89.zip | |
Merge pull request #16922 from y-yagi/add_test_jobs_task
Add test jobs task
Diffstat (limited to 'railties/lib/rails/test_unit/testing.rake')
| -rw-r--r-- | railties/lib/rails/test_unit/testing.rake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/rails/test_unit/testing.rake b/railties/lib/rails/test_unit/testing.rake index 285e2ce846..957deb8a60 100644 --- a/railties/lib/rails/test_unit/testing.rake +++ b/railties/lib/rails/test_unit/testing.rake @@ -3,7 +3,7 @@ require 'rails/test_unit/sub_test_task' task default: :test -desc 'Runs test:units, test:functionals, test:generators, test:integration together' +desc 'Runs test:units, test:functionals, test:generators, test:integration, test:jobs together' task :test do Rails::TestTask.test_creator(Rake.application.top_level_tasks).invoke_rake_task end @@ -13,7 +13,7 @@ namespace :test do # Placeholder task for other Railtie and plugins to enhance. See Active Record for an example. end - task :run => ['test:units', 'test:functionals', 'test:generators', 'test:integration'] + task :run => ['test:units', 'test:functionals', 'test:generators', 'test:integration', 'test:jobs'] # Inspired by: http://ngauthier.com/2012/02/quick-tests-with-bash.html desc "Run tests quickly by merging all types and not resetting db" @@ -28,7 +28,7 @@ namespace :test do Rails::TestTask.new(single: "test:prepare") - ["models", "helpers", "controllers", "mailers", "integration"].each do |name| + ["models", "helpers", "controllers", "mailers", "integration", "jobs"].each do |name| Rails::TestTask.new(name => "test:prepare") do |t| t.pattern = "test/#{name}/**/*_test.rb" end |
