Commit 95817f701474c786112a242859fed3cba68680c3
1 parent
04c3c6eb
Exists in
master
and in
8 other branches
Better parallel test instructions [skip ci]
Showing
1 changed file
with
1 additions
and
3 deletions
Show diff stats
README.md
... | ... | @@ -1814,12 +1814,10 @@ For performance, only enable Searchkick callbacks for the tests that need it. |
1814 | 1814 | |
1815 | 1815 | ### Parallel Tests |
1816 | 1816 | |
1817 | -Rails 6 enables parallel tests by default. | |
1817 | +Rails 6 enables parallel tests by default. Add to your `test/test_helper.rb`: | |
1818 | 1818 | |
1819 | 1819 | ```ruby |
1820 | 1820 | class ActiveSupport::TestCase |
1821 | - parallelize(workers: :number_of_processors) | |
1822 | - | |
1823 | 1821 | parallelize_setup do |worker| |
1824 | 1822 | Searchkick.index_suffix = worker |
1825 | 1823 | ... | ... |