ModuleSplitter

public class ModuleSplitter
extends Object

java.lang.Object
   ↳ com.android.tradefed.testtype.suite.ModuleSplitter


Helper to split a list of modules represented by IConfiguration into a list of execution units represented by ModuleDefinition.

Each configuration may generate 1 or more ModuleDefinition depending on its options and test types:

Summary

Public constructors

ModuleSplitter()

Public methods

static List<ModuleDefinition> splitConfiguration(LinkedHashMap<String, IConfiguration> runConfig, int shardCount, boolean dynamicModule)

Create a List of executable unit ModuleDefinitions based on the map of configuration that was loaded.

Public constructors

ModuleSplitter

public ModuleSplitter ()

Public methods

splitConfiguration

public static List<ModuleDefinition> splitConfiguration (LinkedHashMap<String, IConfiguration> runConfig, 
                int shardCount, 
                boolean dynamicModule)

Create a List of executable unit ModuleDefinitions based on the map of configuration that was loaded.

Parameters
runConfig LinkedHashMap: LinkedHashMap loaded from ITestSuite.loadTests().

shardCount int: a shard count hint to help with sharding.

dynamicModule boolean

Returns
List<ModuleDefinition> List of ModuleDefinition