HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/gems/default/doc/activesupport-6.1.4.1/ri/ActiveSupport/TestCase/parallelize-c.ri
U:RDoc::AnyMethod[iI"parallelize:ETI")ActiveSupport::TestCase::parallelize;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"!Parallelizes the test suite.;To:RDoc::Markup::BlankLineo;
;	[I"ITakes a +workers+ argument that controls how many times the process ;TI"Iis forked. For each process a new database will be created suffixed ;TI"with the worker number.;T@o:RDoc::Markup::Verbatim;	[I"test-database-0
;TI"test-database-1
;T:@format0o;
;	[	I"UIf <tt>ENV["PARALLEL_WORKERS"]</tt> is set the workers argument will be ignored ;TI"Nand the environment variable will be used instead. This is useful for CI ;TI"Nenvironments, or other environments where you may need more workers than ;TI"you do for local testing.;T@o;
;	[I"LIf the number of workers is set to +1+ or fewer, the tests will not be ;TI"parallelized.;T@o;
;	[I"SIf +workers+ is set to +:number_of_processors+, the number of workers will be ;TI"<set to the actual core count on the machine you are on.;T@o;
;	[	I"OThe default parallelization method is to fork processes. If you'd like to ;TI"Suse threads instead you can pass <tt>with: :threads</tt> to the +parallelize+ ;TI"Hmethod. Note the threaded parallelization does not create multiple ;TI"?database and will not work with system tests at this time.;T@o;;	[I"Aparallelize(workers: :number_of_processors, with: :threads)
;T;
0o;
;	[I"NThe threaded parallelization uses minitest's parallel executor directly. ;TI":The processes parallelization uses a Ruby DRb server.;T:
@fileI"$lib/active_support/test_case.rb;T:0@omit_headings_from_table_of_contents_below000[I"7(workers: :number_of_processors, with: :processes);T@3FI"
TestCase;TcRDoc::NormalClass00