rails/railties/test
Bogdan e9f6ce617b Add option to set parallel test worker count to the physical core count of the machine (#34735)
* Add option to set parallel test worker count to the physical core count of the machine

Also, use the physical core count of the machine as
the default number of workers, and  generate the `test_helper.rb` file
with `parallelize(workers: :number_of_processors)`

Closes #34734

* Ensure that we always test parallel testing

Since #34734 we decided to use the physical core count of the machine as
the default number of workers in the parallel testing, we need to
ensure that some tests use at least 2 workers because we could
run those tests on VM that has only 1 physical core.
It also fixes tests failures on the CI since Travis server we are using
has only one physical core.
See https://travis-ci.org/rails/rails/jobs/469281088#L2352
2018-12-18 10:25:35 -08:00
..
application Add option to set parallel test worker count to the physical core count of the machine (#34735) 2018-12-18 10:25:35 -08:00
command Use did_you_mean spell checker for option suggestions 2018-03-23 11:36:03 +02:00
commands Use string for arguments in server test 2018-12-13 16:15:58 +09:00
configuration Adding frozen_string_literal pragma to Railties. 2017-08-14 19:08:09 +02:00
engine Make Webpacker the default JavaScript compiler for Rails 6 (#33079) 2018-09-30 22:31:21 -07:00
fixtures/lib Remove unused fixtures 2017-09-26 07:45:42 +09:00
generators Do not show post install message on rails new 2018-12-13 20:14:19 -05:00
isolation Introduce a guard against DNS rebinding attacks 2018-12-15 20:18:51 +02:00
minitest rubocop single space after assignment 2018-02-19 11:23:47 +05:30
railties Enable Layout/EmptyLinesAroundBlockBody to reduce review cost in the future 2018-07-12 21:29:48 +09:00
test_unit Show rails instead of bin/rails on USAGE instructions 2018-07-06 22:46:54 +02:00
abstract_unit.rb Remove private def 2018-09-23 21:27:44 +05:30
app_loader_test.rb Turn on performance based cops 2018-07-23 15:37:06 -07:00
backtrace_cleaner_test.rb Use backtrace cleaner to clean up backtrace for verbose query logs 2018-08-14 09:15:28 +10:00
code_statistics_calculator_test.rb use "minitest" consistently 2018-09-11 23:57:25 +02:00
code_statistics_test.rb Adding frozen_string_literal pragma to Railties. 2017-08-14 19:08:09 +02:00
console_helpers.rb Enable Performance/UnfreezeString cop 2018-09-23 08:56:55 +09:00
credentials_test.rb Add test for reads environment credential file with environment variable key 2018-12-09 15:00:01 +09:00
engine_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
env_helpers.rb Adding frozen_string_literal pragma to Railties. 2017-08-14 19:08:09 +02:00
generators_test.rb Remove unnecessary test 2018-06-03 20:53:05 +09:00
initializable_test.rb Adding frozen_string_literal pragma to Railties. 2017-08-14 19:08:09 +02:00
json_params_parsing_test.rb Adding frozen_string_literal pragma to Railties. 2017-08-14 19:08:09 +02:00
path_generation_test.rb Add credentials using a generic EncryptedConfiguration class (#30067) 2017-09-11 20:21:20 +02:00
paths_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
rack_logger_test.rb Change the empty block style to have space inside of the block 2018-09-25 13:19:35 -04:00
rails_info_controller_test.rb Add JSON support to rails properties route (/rails/info/properties). 2018-11-07 08:14:09 +09:00
rails_info_test.rb Add JSON support to rails properties route (/rails/info/properties). 2018-11-07 08:14:09 +09:00
secrets_test.rb Deprecate encrypted secrets in favor of credentials. 2017-11-12 17:50:09 +01:00
version_test.rb Adding frozen_string_literal pragma to Railties. 2017-08-14 19:08:09 +02:00