モジュールスプリッター
public class ModuleSplitter
extends Object
java.lang.Object | |
↳ | com.android.tradefed.testtype.suite.ModuleSplitter |
IConfiguration
で表されるモジュールのリストをModuleDefinition
で表される実行ユニットのリストに分割するヘルパー。
各構成は、オプションとテストの種類に応じて、1 つ以上のModuleDefinition
を生成する場合があります。
- シャード不可の
IConfiguration
単一のModuleDefinition
を生成します。 - シャード可能な
IConfiguration
IRemoteTest
プロパティにリンクされた多数の ModuleDefinition を生成します。- 非
IShardableTest
単一の ModuleDefinition を生成します。 -
IShardableTest
は、IShardableTest.split()
によって返されるテストごとに 1 つの ModuleDefinition を生成します。
- 非
まとめ
パブリック コンストラクター | |
---|---|
ModuleSplitter () |
公開メソッド | |
---|---|
static | splitConfiguration ( TestInformation testInfo, runConfig, suitePreparersPerDevice, int shardCount, boolean dynamicModule, boolean intraModuleSharding) splitConfiguration ( TestInformation testInfo, runConfig, suitePreparersPerDevice, int shardCount, boolean dynamicModule, boolean intraModuleSharding) splitConfiguration ( TestInformation testInfo, runConfig, suitePreparersPerDevice, int shardCount, boolean dynamicModule, boolean intraModuleSharding) ロードされた構成のマップに基づいて、実行可能ユニット |
パブリック コンストラクター
モジュールスプリッター
public ModuleSplitter ()
公開メソッド
分割構成
public staticsplitConfiguration (TestInformation testInfo, runConfig, suitePreparersPerDevice, int shardCount, boolean dynamicModule, boolean intraModuleSharding)
ロードされた構成のマップに基づいて、実行可能ユニットModuleDefinition
のリストを作成します。
パラメーター | |
---|---|
testInfo | TestInformation : シャーディングを続行するための現在のTestInformation 。 |
runConfig | ERROR(/LinkedHashMap) ITestSuite#loadTests() から読み込まれました。 |
suitePreparersPerDevice | |
shardCount | int : シャーディングに役立つシャード数のヒント。 |
dynamicModule | boolean : モジュールをプールで共有できるかどうか、または独立している必要があるかどうか (厳密なシャーディング)。 |
intraModuleSharding | boolean : モジュール内で分割するかどうか。 |
戻り値 | |
---|---|
ModuleDefinition のリスト |