Add support for parallel_tests
This commit is contained in:
parent
2b62a37ec5
commit
5b5b6fa330
6 changed files with 13 additions and 1 deletions
2
.rspec_parallel
Normal file
2
.rspec_parallel
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
--format progress
|
||||||
|
--format ParallelTests::RSpec::SummaryLogger --out tmp/spec_summary.log
|
1
Gemfile
1
Gemfile
|
@ -95,6 +95,7 @@ group :development, :ci, :test do
|
||||||
gem 'standard', '~> 0.1.2'
|
gem 'standard', '~> 0.1.2'
|
||||||
gem 'rspec-rails', '~> 3.8', '>= 3.8.2'
|
gem 'rspec-rails', '~> 3.8', '>= 3.8.2'
|
||||||
gem 'rspec', '~> 3.8'
|
gem 'rspec', '~> 3.8'
|
||||||
|
gem 'parallel_tests', '~> 2.32'
|
||||||
end
|
end
|
||||||
|
|
||||||
group :ci, :test do
|
group :ci, :test do
|
||||||
|
|
|
@ -311,6 +311,8 @@ GEM
|
||||||
mini_portile2 (~> 2.4.0)
|
mini_portile2 (~> 2.4.0)
|
||||||
orm_adapter (0.5.0)
|
orm_adapter (0.5.0)
|
||||||
parallel (1.17.0)
|
parallel (1.17.0)
|
||||||
|
parallel_tests (2.32.0)
|
||||||
|
parallel
|
||||||
parser (2.6.3.0)
|
parser (2.6.3.0)
|
||||||
ast (~> 2.4.0)
|
ast (~> 2.4.0)
|
||||||
pg (0.21.0)
|
pg (0.21.0)
|
||||||
|
@ -547,6 +549,7 @@ DEPENDENCIES
|
||||||
mini_magick (~> 4.9)
|
mini_magick (~> 4.9)
|
||||||
nearest_time_zone (~> 0.0.4)
|
nearest_time_zone (~> 0.0.4)
|
||||||
parallel (~> 1.17)
|
parallel (~> 1.17)
|
||||||
|
parallel_tests (~> 2.32)
|
||||||
param_validation!
|
param_validation!
|
||||||
pg (~> 0.11)
|
pg (~> 0.11)
|
||||||
pry (~> 0.12.2)
|
pry (~> 0.12.2)
|
||||||
|
|
|
@ -25,7 +25,7 @@ development:
|
||||||
test:
|
test:
|
||||||
adapter: postgresql
|
adapter: postgresql
|
||||||
encoding: unicode
|
encoding: unicode
|
||||||
database: commitchange_test
|
database: houdini_test<%= ENV['TEST_ENV_NUMBER'] %>
|
||||||
pool: 5
|
pool: 5
|
||||||
username: houdini_user
|
username: houdini_user
|
||||||
password: password
|
password: password
|
||||||
|
|
|
@ -45,4 +45,7 @@ Commitchange::Application.configure do
|
||||||
|
|
||||||
# Raises error for missing translations
|
# Raises error for missing translations
|
||||||
# config.action_view.raise_on_missing_translations = true
|
# config.action_view.raise_on_missing_translations = true
|
||||||
|
|
||||||
|
#recommended by https://github.com/grosser/parallel_tests/wiki
|
||||||
|
config.cache_store = :file_store, Rails.root.join("tmp", "cache", "paralleltests#{ENV['TEST_ENV_NUMBER']}")
|
||||||
end
|
end
|
||||||
|
|
|
@ -115,4 +115,7 @@ RSpec.configure do |config|
|
||||||
end
|
end
|
||||||
|
|
||||||
config.include(Wisper::RSpec::BroadcastMatcher)
|
config.include(Wisper::RSpec::BroadcastMatcher)
|
||||||
|
|
||||||
|
# mute noise for parallel tests
|
||||||
|
config.silence_filter_announcements = true if ENV['TEST_ENV_NUMBER']
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue