Skip to content

Commit 42fd3d7

Browse files
committed
update parallel_tests grouping to scenarios for cucumber
1 parent b4f2247 commit 42fd3d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/tasks/test.rake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ begin
5656
desc 'run rspec test suite'
5757
task :rspec, %i[pattern] => %i[test:environment log:clear] do |_, args|
5858
pattern = args[:pattern]&.delete_prefix('./') # parallel_tests doesn't support this prefix
59-
options = ENV['PARALLEL_TEST_OPTIONS']
59+
options = ['--group-by=filesize', ENV['PARALLEL_TEST_OPTIONS']].compact.join(" ")
6060

6161
if pattern&.match?(/((\[\d+(:\d+)*\])|(:\d+))$/) # parallel_tests doesn't support line numbers/example IDs
6262
RSpec::Core::RakeTask.new(:spec) unless Rake::Task.task_defined?('spec') # make sure task always exists
@@ -86,7 +86,7 @@ begin
8686
desc 'run cucumber test suite'
8787
task :cucumber, %i[pattern] => %i[test:environment log:clear] do |_, args|
8888
pattern = args[:pattern]&.delete_prefix('./') # parallel_tests doesn't support this prefix
89-
options = ENV['PARALLEL_TEST_OPTIONS']
89+
options = ['--group-by=scenarios', ENV['PARALLEL_TEST_OPTIONS']].compact.join(" ")
9090

9191
if pattern&.match?(/:\d+$/) # parallel_tests doesn't support line numbers
9292
cucumber = Rake::Task['cucumber']

0 commit comments

Comments
 (0)