Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinMulhern committed Aug 14, 2024
1 parent ce001dd commit d093b44
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ group :development, :test do
gem 'dotenv-rails', '~> 3.1'
gem 'parallel_tests', '~> 4.7'
gem 'rspec-rails', '~> 6.1'
gem 'turbo_tests', '~> 2.2'
end

group :test do
Expand Down
4 changes: 4 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,9 @@ GEM
actionpack (>= 6.0.0)
activejob (>= 6.0.0)
railties (>= 6.0.0)
turbo_tests (2.2.4)
parallel_tests (>= 3.3.0, < 5)
rspec (>= 3.10)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.5.0)
Expand Down Expand Up @@ -663,6 +666,7 @@ DEPENDENCIES
stackprof (~> 0.2)
stimulus-rails (~> 1.3)
turbo-rails (~> 2.0)
turbo_tests (~> 2.2)
vcr (~> 6.2)
view_component (~> 3.12)
web-console (~> 4.2)
Expand Down
2 changes: 1 addition & 1 deletion bin/ci_spec
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ groups = "#{node_index * CI_RUNNER_PROCESS_COUNT + parallel_tests_is_one_indexed

total_parallelism = CI_RUNNER_PROCESS_COUNT * ENV['CI_NODE_TOTAL'].to_i

exec "bundle exec parallel_test ./spec -t rspec -n #{total_parallelism} --only-group #{groups}"
exec "bundle exec turbo_tests ./spec -t rspec -n #{total_parallelism} --only-group #{groups}"
4 changes: 4 additions & 0 deletions spec/support/precompile_assets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
next
end

unless ParallelTests.first_process?
next
end

if has_no_system_tests
$stdout.puts "\n🚀️️ No system test selected. Skip assets compilation.\n"
next
Expand Down

0 comments on commit d093b44

Please sign in to comment.