public interface TestXRule extends TestRule, ExternalTestRunnerRule, HasSupplementaryOutputs
TestRule.TestReportingCallback
Modifier and Type | Field and Description |
---|---|
static String |
TEST_BINARY_OUTPUT
The named output for test rules that maps to the location of where Buck materializes the final
test binary.
|
NOOP_REPORTING_CALLBACK
Modifier and Type | Method and Description |
---|---|
default ExternalTestSpec |
getExternalTestRunnerSpec(ExecutionContext executionContext,
TestRunningOptions testRunningOptions,
BuildContext buildContext)
This shouldn't be overriden as the default implementation is sufficient.
|
default SourcePath |
getSourcePathToSupplementaryOutput(String name)
Returns a SourcePath to a named supplementary output, or null if it does not exist.
|
CoercedTestRunnerSpec |
getSpecs() |
default Callable<TestResults> |
interpretTestResults(ExecutionContext executionContext,
SourcePathResolverAdapter pathResolver,
boolean isUsingTestSelectors)
Deprecated.
|
default void |
onPreTest(BuildContext buildContext)
Deprecated.
|
default com.google.common.collect.ImmutableList<Step> |
runTests(ExecutionContext executionContext,
TestRunningOptions options,
BuildContext buildContext,
TestRule.TestReportingCallback testReportingCallback)
Deprecated.
|
default boolean |
runTestSeparately()
Deprecated.
|
default IllegalStateException |
shouldNotBeCalled() |
default boolean |
supportsStreamingTests()
Deprecated.
|
getContacts, getLabels, getPathToTestOutputDirectory
compareTo, getBuildDeps, getBuildSteps, getBuildTarget, getFullyQualifiedName, getProjectFilesystem, getSourcePathToOutput, hasBuildSteps, isCacheable, outputFileCanBeCopied, shouldRespectInputSizeLimitForRemoteExecution, toString, updateBuildRuleResolver
getDependencies, getSourcePathOutputs
getType
static final String TEST_BINARY_OUTPUT
default IllegalStateException shouldNotBeCalled()
CoercedTestRunnerSpec getSpecs()
@Deprecated default com.google.common.collect.ImmutableList<Step> runTests(ExecutionContext executionContext, TestRunningOptions options, BuildContext buildContext, TestRule.TestReportingCallback testReportingCallback)
@Deprecated default Callable<TestResults> interpretTestResults(ExecutionContext executionContext, SourcePathResolverAdapter pathResolver, boolean isUsingTestSelectors)
interpretTestResults
in interface TestRule
@Deprecated default boolean runTestSeparately()
runTestSeparately
in interface TestRule
@Deprecated default boolean supportsStreamingTests()
supportsStreamingTests
in interface TestRule
runTests()
on this rule invokes the callbacks in testReportingCallback
as the tests run, false otherwise.default ExternalTestSpec getExternalTestRunnerSpec(ExecutionContext executionContext, TestRunningOptions testRunningOptions, BuildContext buildContext)
getExternalTestRunnerSpec
in interface ExternalTestRunnerRule
@Deprecated default void onPreTest(BuildContext buildContext)
onPreTest
in interface ExternalTestRunnerRule
@Nullable default SourcePath getSourcePathToSupplementaryOutput(String name)
HasSupplementaryOutputs
getSourcePathToSupplementaryOutput
in interface HasSupplementaryOutputs