Skip to content

Commit

Permalink
[feat] Use test-queue for parallel testing
Browse files Browse the repository at this point in the history
  • Loading branch information
nickfloyd committed May 12, 2023
2 parents fb01ac2 + 301f387 commit d5eec6e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/octokit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
env:
GITHUB_CI: 1
RUBYOPT: "--enable-frozen-string-literal"
run: bundle exec rspec -w
run: bundle exec rspec-queue -w
- name: Lint with Rubocop
env:
GITHUB_CI: 1
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ group :test do
gem 'rbnacl', '~> 7.1.1'
gem 'rspec', '~> 3.9'
gem 'simplecov', require: false
gem 'test-queue'
gem 'vcr', '~> 6.1'
gem 'webmock', '~> 3.8', '>= 3.8.2'
end
Expand Down
12 changes: 9 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,18 @@
require 'bundler'
Bundler::GemHelper.install_tasks

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)

task test: :spec
task default: :spec

desc 'Run RSpec'
task :spec do
if Process.respond_to?(:fork)
sh('rspec-queue')
else
sh('rspec')
end
end

namespace :doc do
require 'yard'
YARD::Rake::YardocTask.new do |task|
Expand Down

0 comments on commit d5eec6e

Please sign in to comment.