public class JavaTestX extends AbstractBuildRuleWithDeclaredAndExtraDeps implements TestXRule, HasRuntimeDeps, ExternalTestRunnerRule, ExportDependencies
It cannot be run via buck's internal runners
TestRule.TestReportingCallback
TEST_BINARY_OUTPUT
NOOP_REPORTING_CALLBACK
Constructor and Description |
---|
JavaTestX(BuildTarget buildTarget,
ProjectFilesystem projectFilesystem,
BuildRuleParams params,
JavaBinary compiledTestsBinary,
JavaLibrary compiledTestsLibrary,
Set<String> labels,
Set<String> contacts,
CoercedTestRunnerSpec specs,
List<Arg> vmArg) |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableList<Step> |
getBuildSteps(BuildContext buildContext,
BuildableContext buildableContext) |
com.google.common.collect.ImmutableSet<String> |
getContacts() |
SortedSet<BuildRule> |
getExportedDeps() |
SortedSet<BuildRule> |
getExportedProvidedDeps() |
protected com.google.common.collect.ImmutableList<String> |
getJvmArgs(SourcePathResolverAdapter sourcePathResolverAdapter) |
com.google.common.collect.ImmutableSet<String> |
getLabels() |
Path |
getPathToTestOutputDirectory() |
protected com.google.common.collect.ImmutableSet<Path> |
getRuntimeClasspath(BuildContext buildContext) |
java.util.stream.Stream<BuildTarget> |
getRuntimeDeps(BuildRuleResolver buildRuleResolver) |
SourcePath |
getSourcePathToOutput() |
SourcePath |
getSourcePathToSupplementaryOutput(String name)
Returns a SourcePath to a named supplementary output, or null if it does not exist.
|
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, interpretTestResults, onPreTest, runTests, runTestSeparately, shouldNotBeCalled, supportsStreamingTests
compareTo, getBuildDeps, getBuildTarget, getFullyQualifiedName, getProjectFilesystem, hasBuildSteps, isCacheable, outputFileCanBeCopied, shouldRespectInputSizeLimitForRemoteExecution, toString, updateBuildRuleResolver
getDependencies, getSourcePathOutputs
getType
public JavaTestX(BuildTarget buildTarget, ProjectFilesystem projectFilesystem, BuildRuleParams params, JavaBinary compiledTestsBinary, JavaLibrary compiledTestsLibrary, Set<String> labels, Set<String> contacts, CoercedTestRunnerSpec specs, List<Arg> vmArg)
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<Step> getBuildSteps(BuildContext buildContext, BuildableContext buildableContext)
getBuildSteps
in interface BuildRule
public SortedSet<BuildRule> getExportedDeps()
getExportedDeps
in interface ExportDependencies
public SortedSet<BuildRule> getExportedProvidedDeps()
getExportedProvidedDeps
in interface ExportDependencies
@Nullable public SourcePath getSourcePathToOutput()
getSourcePathToOutput
in interface BuildRule
public java.util.stream.Stream<BuildTarget> getRuntimeDeps(BuildRuleResolver buildRuleResolver)
getRuntimeDeps
in interface HasRuntimeDeps
protected com.google.common.collect.ImmutableSet<Path> getRuntimeClasspath(BuildContext buildContext)
protected com.google.common.collect.ImmutableList<String> getJvmArgs(SourcePathResolverAdapter sourcePathResolverAdapter)
public CoercedTestRunnerSpec getSpecs()
@Nullable public SourcePath getSourcePathToSupplementaryOutput(String name)
HasSupplementaryOutputs
getSourcePathToSupplementaryOutput
in interface HasSupplementaryOutputs
getSourcePathToSupplementaryOutput
in interface TestXRule