public class GoTestX extends AbstractBuildRuleWithDeclaredAndExtraDeps implements TestXRule, HasRuntimeDeps, HasSupplementaryOutputs, ExternalTestRunnerRule, BinaryBuildRule
TestRule.TestReportingCallback
TEST_BINARY_OUTPUT
NOOP_REPORTING_CALLBACK
Constructor and Description |
---|
GoTestX(BuildTarget buildTarget,
ProjectFilesystem projectFilesystem,
BuildRuleParams buildRuleParams,
GoBinary testMain,
com.google.common.collect.ImmutableSet<String> labels,
com.google.common.collect.ImmutableSet<String> contacts,
CoercedTestRunnerSpec specs,
com.google.common.collect.ImmutableSortedSet<SourcePath> resources) |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableList<? extends Step> |
getBuildSteps(BuildContext context,
BuildableContext buildableContext) |
com.google.common.collect.ImmutableSet<String> |
getContacts() |
Tool |
getExecutableCommand(OutputLabel outputLabel)
Command to execute the output of this rule.
|
com.google.common.collect.ImmutableSet<String> |
getLabels() |
Path |
getPathToTestOutputDirectory() |
java.util.stream.Stream<BuildTarget> |
getRuntimeDeps(BuildRuleResolver buildRuleResolver) |
SourcePath |
getSourcePathToOutput() |
CoercedTestRunnerSpec |
getSpecs() |
deprecatedGetExtraDeps, getBuildDeps, getDeclaredDeps, getTargetGraphOnlyDeps
equals, getBuildTarget, getDependencies, getProjectFilesystem, getSourcePathOutputs, getType, hasBuildSteps, hashCode, injectFields, isCacheable, toString, updateBuildRuleResolver
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getExternalTestRunnerSpec, getSourcePathToSupplementaryOutput, interpretTestResults, onPreTest, runTests, runTestSeparately, shouldNotBeCalled, supportsStreamingTests
compareTo, getBuildDeps, getBuildTarget, getFullyQualifiedName, getProjectFilesystem, hasBuildSteps, isCacheable, outputFileCanBeCopied, shouldRespectInputSizeLimitForRemoteExecution, toString, updateBuildRuleResolver
getDependencies, getSourcePathOutputs
getType
public GoTestX(BuildTarget buildTarget, ProjectFilesystem projectFilesystem, BuildRuleParams buildRuleParams, GoBinary testMain, com.google.common.collect.ImmutableSet<String> labels, com.google.common.collect.ImmutableSet<String> contacts, CoercedTestRunnerSpec specs, com.google.common.collect.ImmutableSortedSet<SourcePath> resources)
public CoercedTestRunnerSpec getSpecs()
public com.google.common.collect.ImmutableSet<String> getLabels()
public com.google.common.collect.ImmutableSet<String> getContacts()
getContacts
in interface TestRule
public Path getPathToTestOutputDirectory()
getPathToTestOutputDirectory
in interface TestRule
public com.google.common.collect.ImmutableList<? extends Step> getBuildSteps(BuildContext context, BuildableContext buildableContext)
getBuildSteps
in interface BuildRule
@Nullable public SourcePath getSourcePathToOutput()
getSourcePathToOutput
in interface BuildRule
public java.util.stream.Stream<BuildTarget> getRuntimeDeps(BuildRuleResolver buildRuleResolver)
getRuntimeDeps
in interface HasRuntimeDeps
public Tool getExecutableCommand(OutputLabel outputLabel)
BinaryBuildRule
getExecutableCommand
in interface BinaryBuildRule
outputLabel
- associated with the executable