]> git.openstreetmap.org Git - rails.git/commitdiff
Enable parallel tests
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 27 Nov 2019 13:58:36 +0000 (14:58 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 18 Mar 2020 14:04:18 +0000 (15:04 +0100)
test/test_helper.rb

index 08f01e8e7d488c21c2b9493ca74434b5a82516ee..c19b809ecbcd102e4f606afa29a395ecfd2d681a 100644 (file)
@@ -28,6 +28,9 @@ module ActiveSupport
     include FactoryBot::Syntax::Methods
     include ActiveJob::TestHelper
 
+    # Run tests in parallel with specified workers
+    parallelize(:workers => :number_of_processors)
+
     ##
     # takes a block which is executed in the context of a different
     # ActionController instance. this is used so that code can call methods