Skip to content

Commit

Permalink
Use test-queue for parallel testing
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Jun 27, 2021
1 parent d35673b commit 574c311
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ gem 'rubocop', github: 'rubocop/rubocop'
gem 'rubocop-performance', '~> 1.11.0'
gem 'rubocop-rspec', '~> 1.29.0'
gem 'simplecov'
gem 'test-queue'
gem 'yard', '~> 0.9'
9 changes: 7 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,13 @@ end
require 'rubocop/rake_task'
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec) do |spec|
spec.pattern = FileList['spec/**/*_spec.rb']
desc 'Run RSpec'
task :spec do
if Process.respond_to?(:fork)
sh('rspec-queue spec')
else
sh('rspec spec')
end
end

desc 'Run RSpec with code coverage'
Expand Down

0 comments on commit 574c311

Please sign in to comment.