Address `DEPRECATED: use MT_CPU instead of N for parallel test runs`
* Steps to reproduce ```ruby % cd actionpack % N=0 bundle exec ruby -w -Itest test/controller/mime/accept_format_test.rb DEPRECATED: use MT_CPU instead of N for parallel test runs ... snip ... % ``` * minitest 5.12.0 deprecates ENV["N"] to specify number of parallel test runners: https://github.com/seattlerb/minitest/blob/master/History.rdoc#5120--2019-09-22 https://github.com/seattlerb/minitest/commit/4103a10eb4bb99bc60721b3245ee3a69988a214b * No other code uses `ENV["N"]` ``` % git grep 'ENV\["N"\]' actionpack/test/abstract_unit.rb: PROCESS_COUNT = (ENV["N"] || 4).to_i % ``` * Rails guide suggests using `PARALLEL_WORKERS` to specify the number of workers, not `N` https://guides.rubyonrails.org/testing.html#parallel-testing https://guides.rubyonrails.org/testing.html#parallel-testing ```ruby PARALLEL_WORKERS=15 rails test ```
Showing
想要评论请 注册 或 登录