From 62e0105503ae188e4219d065a7528ae40d621e9a Mon Sep 17 00:00:00 2001 From: grosendo2006 Date: Tue, 25 Jul 2023 19:40:32 -0300 Subject: [PATCH] add parallel gem --- Gemfile | 1 + Gemfile.lock | 3 +++ config/database.yml.example | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 72a531a1..20f00542 100644 --- a/Gemfile +++ b/Gemfile @@ -38,6 +38,7 @@ group :development, :test do gem 'annotate', '~> 3.2', '>= 3.0.3' gem 'dotenv-rails', '~> 2.7.6' gem 'factory_bot_rails', '~> 5.1', '>= 5.1.1' + gem 'parallel_tests', '~> 4.2' gem 'pry-byebug', '~> 3.9', platform: :mri gem 'pry-rails', '~> 0.3.9' gem 'rspec_api_documentation', '~> 6.1.0' diff --git a/Gemfile.lock b/Gemfile.lock index 46c957a8..330136d2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -285,6 +285,8 @@ GEM orm_adapter (0.5.0) pagy (4.11.0) parallel (1.22.1) + parallel_tests (4.2.1) + parallel parser (3.1.2.1) ast (~> 2.4.1) pg (1.4.3) @@ -501,6 +503,7 @@ DEPENDENCIES listen (~> 3.2) oj (~> 3.9, >= 3.9.2) pagy (~> 4.0) + parallel_tests (~> 4.2) pg (~> 1.1, >= 1.1.4) pg_query (~> 4.2.1) prosopite (~> 1.3.2) diff --git a/config/database.yml.example b/config/database.yml.example index 3c404d9e..4e838b3d 100644 --- a/config/database.yml.example +++ b/config/database.yml.example @@ -13,7 +13,7 @@ development: test: <<: *default - database: sample_project_test + database: sample_project_test<%= ENV['TEST_ENV_NUMBER'] %> production: <<: *default