method

parallelize_setup

Importance_1
v6.1.7.7 - Show latest stable - 0 notes - Class: ActiveSupport::TestCase
parallelize_setup(&block) public

Set up hook for parallel testing. This can be used if you have multiple databases or any behavior that needs to be run after the process is forked but before the tests run.

Note: this feature is not available with the threaded parallelization.

In your test_helper.rb add the following:

class ActiveSupport::TestCase
  parallelize_setup do
    # create databases
  end
end
Show source
Register or log in to add new notes.