Package com.facebook.buck.shell
Class TestSuiteDescription
- java.lang.Object
-
- com.facebook.buck.shell.TestSuiteDescription
-
- All Implemented Interfaces:
BaseDescription<TestSuiteDescriptionArg>
,Description<TestSuiteDescriptionArg>
,DescriptionWithTargetGraph<TestSuiteDescriptionArg>
public class TestSuiteDescription extends Object implements DescriptionWithTargetGraph<TestSuiteDescriptionArg>
Produces rules used to logically group tests, allowing `buck test //:some_test_suite` behavior that invokes all tests that this suite depends on. Also validates that created rules only depend on Test rules and TestSuite rules.
-
-
Constructor Summary
Constructors Constructor Description TestSuiteDescription()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TestSuite
createBuildRule(BuildRuleCreationContextWithTargetGraph context, BuildTarget buildTarget, BuildRuleParams params, TestSuiteDescriptionArg args)
Create aBuildRule
for the givenBuildRuleParams
.Class<TestSuiteDescriptionArg>
getConstructorArgType()
The type of the constructor argument that is used by this description to create a rule-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.facebook.buck.core.description.BaseDescription
getConfigurationDeps
-
Methods inherited from interface com.facebook.buck.core.rules.DescriptionWithTargetGraph
producesCacheableSubgraph
-
-
-
-
Method Detail
-
getConstructorArgType
public Class<TestSuiteDescriptionArg> getConstructorArgType()
Description copied from interface:BaseDescription
The type of the constructor argument that is used by this description to create a rule- Specified by:
getConstructorArgType
in interfaceBaseDescription<TestSuiteDescriptionArg>
-
createBuildRule
public TestSuite createBuildRule(BuildRuleCreationContextWithTargetGraph context, BuildTarget buildTarget, BuildRuleParams params, TestSuiteDescriptionArg args)
Description copied from interface:DescriptionWithTargetGraph
Create aBuildRule
for the givenBuildRuleParams
. Note that theBuildTarget
referred to in theparams
contains theFlavor
to create.- Specified by:
createBuildRule
in interfaceDescriptionWithTargetGraph<TestSuiteDescriptionArg>
args
- A constructor argument, of type as returned byBaseDescription.getConstructorArgType()
.- Returns:
- The
BuildRule
that describes the default flavour of the rule being described.
-
-