2025/05/01分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
- Implement ability to skip creating parallel testing databases.
- Add public API for
before_fork_hook
in parallel testing
Implement ability to opt out of parallel database hooks
Active Record、Active Supportの修正です。
parallel testingで使用するDBの作成処理をスキップ出来るよう修正しています。DBの作成処理を独自で管理したい時の為、との事です。スキップしたい場合、parallelize
にparallelize_databases: false
を指定するか、config(config.active_support.parallelize_test_databases = false
)を指定すれば良いようになっています。
Merge pull request #54993 from duffuniverse/fix-typos-in-multiple-databases-guide
rails guideのMultiple Databases with Active Record
の修正です。
guide全体のタイポの修正を行っています。
Add public API for before_fork_hook
in parallel testing
activesupport/lib/active_support/test_case.rb
の修正です。
parallel testingでテスト用のworkerのfork前に任意の処理を実行出来るようにする為の、parallelize_before_fork
hookを追加しています。