Created
June 19, 2014 18:57
-
-
Save johnathanludwig/9e1eafa4eb97ff43c6fd to your computer and use it in GitHub Desktop.
Add custom test group to rake test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add test:workers rake task, and include it in the normal test run | |
namespace :test do | |
task run: ['test:workers'] | |
['workers'].each do |name| | |
Rails::TestTask.new(name => 'test:prepare') do |t| | |
t.pattern = "test/#{name}/**/*_test.rb" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment