モジュールスプリッター

public class ModuleSplitter
extends Object

java.lang.オブジェクト
com.android.tradefed.testtype.suite.ModuleSplitter


IConfigurationで表されるモジュールのリストをModuleDefinitionで表される実行ユニットのリストに分割するヘルパー。

各構成は、オプションとテスト タイプに応じて 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)

ロードされた構成のマップに基づいて、実行可能ユニットModuleDefinitionのリストを作成します。

パブリックコンストラクター

モジュールスプリッター

public ModuleSplitter ()

パブリックメソッド

分割構成

public static  splitConfiguration (TestInformation testInfo, 
                 runConfig, 
                 suitePreparersPerDevice, 
                int shardCount, 
                boolean dynamicModule, 
                boolean intraModuleSharding)

ロードされた構成のマップに基づいて、実行可能ユニットModuleDefinitionのリストを作成します。

パラメーター
testInfo TestInformation : シャーディングを続行する現在のTestInformation

runConfig : ITestSuite#loadTests()からロードされたERROR(/LinkedHashMap)

suitePreparersPerDevice : テスト デバイスごとのスイート レベルの作成者のマップ。

shardCount int : シャーディングに役立つシャード数のヒント。

dynamicModule boolean : モジュールをプール内で共有できるかどうか、または独立している必要があるかどうか (厳密なシャーディング)。

intraModuleSharding boolean : モジュール内でシャーディングするかどうか。

戻り値
ModuleDefinitionのリスト