LocalRunInstructionBuilder

public class LocalRunInstructionBuilder
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.LocalRunInstructionBuilder


Utility to compile the instruction to run test locally.

Summary

Public constructors

LocalRunInstructionBuilder()

Public methods

static String getInstruction(ConfigurationDescriptor configDescriptor, ConfigurationDescriptor.LocalTestRunner runner, TestDescription testId)

Compile the instruction to run test locally.

static String getInstruction(ConfigurationDescriptor configDescriptor, ConfigurationDescriptor.LocalTestRunner runner)

Compile the instruction to run test locally.

Public constructors

LocalRunInstructionBuilder

public LocalRunInstructionBuilder ()

Public methods

getInstruction

public static String getInstruction (ConfigurationDescriptor configDescriptor, 
                ConfigurationDescriptor.LocalTestRunner runner, 
                TestDescription testId)

Compile the instruction to run test locally.

Parameters
configDescriptor ConfigurationDescriptor: ConfigurationDescriptor to create instruction for.

runner ConfigurationDescriptor.LocalTestRunner: LocalTestRunner to be used to build instruction.

testId TestDescription: TestDescription of the test to run. It can be null when building local run instruction for the whole module.

Returns
String String of the instruction.

getInstruction

public static String getInstruction (ConfigurationDescriptor configDescriptor, 
                ConfigurationDescriptor.LocalTestRunner runner)

Compile the instruction to run test locally.

Parameters
configDescriptor ConfigurationDescriptor: ConfigurationDescriptor to create instruction for.

runner ConfigurationDescriptor.LocalTestRunner: LocalTestRunner to be used to build instruction.

Returns
String String of the instruction.