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
|
getCommand(ConfigurationDescriptor configDescriptor, TestDescription testId, ConfigurationDescriptor.LocalTestRunner runner)
Return a command to run a test locally. |
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
getCommand
public static String getCommand (ConfigurationDescriptor configDescriptor, TestDescription testId, ConfigurationDescriptor.LocalTestRunner runner)
Return a command to run a test locally.
Parameters | |
---|---|
configDescriptor |
ConfigurationDescriptor : ConfigurationDescriptor configuration for the test run. |
testId |
TestDescription : TestDescription to specify which test to run. |
runner |
ConfigurationDescriptor.LocalTestRunner : LocalTestRunner to use for running the test. |
Returns | |
---|---|
String |
String command to run the test locally. |
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. |