Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

don't fail starting the application when parallel_tests is missing (#8849)

ulfertsaac99eee175c
diff --git a/lib/tasks/parallel_testing.rake b/lib/tasks/parallel_testing.rake
index bd0a950176e..ad13ddeedf2 100644
--- a/lib/tasks/parallel_testing.rake
+++ b/lib/tasks/parallel_testing.rake
@@ -30,6 +30,12 @@
require 'optparse'
require 'plugins/load_path_helper'
+begin
+ Bundler.gem('parallel_tests')
+rescue Gem::LoadError
+ # In case parallel_tests is not provided, the whole of the parallel task group will not work.
+ return
+end
require 'parallel_tests/tasks'
# Remove task added by parallel_tests as it conflicts with our own.