Skip to content

Instantly share code, notes, and snippets.

@johnathanludwig
Created June 19, 2014 18:57
Show Gist options
  • Save johnathanludwig/9e1eafa4eb97ff43c6fd to your computer and use it in GitHub Desktop.
Save johnathanludwig/9e1eafa4eb97ff43c6fd to your computer and use it in GitHub Desktop.
Add custom test group to rake test
# 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