public class RunTestAndRecordResultStep extends Object implements Step
Constructor and Description |
---|
RunTestAndRecordResultStep(ProjectFilesystem filesystem,
com.google.common.collect.ImmutableList<String> command,
com.google.common.collect.ImmutableMap<String,String> env,
Optional<Long> testRuleTimeoutMs,
BuildTarget buildTarget,
Path pathToTestResultFile,
String shortName,
String testName) |
Modifier and Type | Method and Description |
---|---|
StepExecutionResult |
execute(ExecutionContext context) |
String |
getDescription(ExecutionContext context) |
String |
getShortName() |
protected TestResultSummary |
getTestSummary(ExecutionContext context)
Run whatever binaries are necessary, and return a
TestResultSummary explaining the
outcome |
public RunTestAndRecordResultStep(ProjectFilesystem filesystem, com.google.common.collect.ImmutableList<String> command, com.google.common.collect.ImmutableMap<String,String> env, Optional<Long> testRuleTimeoutMs, BuildTarget buildTarget, Path pathToTestResultFile, String shortName, String testName)
public String getShortName()
getShortName
in interface Step
public String getDescription(ExecutionContext context)
getDescription
in interface Step
protected TestResultSummary getTestSummary(ExecutionContext context) throws IOException, InterruptedException
TestResultSummary
explaining the
outcomeIOException
InterruptedException
public StepExecutionResult execute(ExecutionContext context) throws IOException, InterruptedException
execute
in interface Step
IOException
InterruptedException