Skip to content

Commit

Permalink
Parallelize test suite
Browse files Browse the repository at this point in the history
In the past, the test suite has been flaky, and didn't seem to truncate
tables from previous runs.

The root cause of that might be related to [rails/rails#46820][]. In the
meantime, while that is resolved, this commit adds a line to
[parallelize][] to the test suite, and some corresponding `.sqlite3`
ignore values to the `.gitignore`.

[rails/rails#46820]: rails/rails#46820
[parallelize]: https://edgeapi.rubyonrails.org/classes/ActiveSupport/TestCase.html#method-c-parallelize
  • Loading branch information
seanpdoyle committed Dec 24, 2022
1 parent cf69d2a commit e5cff93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.gem
/node_modules
Gemfile.lock
*.sqlite3*
2 changes: 2 additions & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ def render(...)

class ActiveSupport::TestCase
include ActiveJob::TestHelper

parallelize(workers: :number_of_processors, threshold: 2)
end

class ActionDispatch::IntegrationTest
Expand Down

0 comments on commit e5cff93

Please sign in to comment.