Class TestInfo
- java.lang.Object
-
- com.facebook.buck.core.starlark.compatible.BuckStarlarkStructObject
-
- com.facebook.buck.core.rules.providers.impl.BuiltInProviderInfo<TestInfo>
-
- com.facebook.buck.core.rules.providers.lib.TestInfo
-
- All Implemented Interfaces:
ProviderInfo<TestInfo>
,SkylarkProviderInfo
,com.google.devtools.build.lib.skylarkinterface.SkylarkPrintable
,com.google.devtools.build.lib.skylarkinterface.SkylarkValue
,com.google.devtools.build.lib.syntax.ClassObject
- Direct Known Subclasses:
ImmutableTestInfo
public abstract class TestInfo extends BuiltInProviderInfo<TestInfo>
Provider that passes along information needed by the buck test runner / external test runners
-
-
Field Summary
Fields Modifier and Type Field Description static BuiltInProvider<TestInfo>
PROVIDER
-
Constructor Summary
Constructors Constructor Description TestInfo()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract com.google.common.collect.ImmutableSet<String>
contacts()
static TestInfo
instantiateFromSkylark(String testName, String testCaseName, com.google.devtools.build.lib.syntax.SkylarkList<String> labels, com.google.devtools.build.lib.syntax.SkylarkList<String> contacts, Object timeoutMs, boolean runTestsSeparately, String type, com.google.devtools.build.lib.events.Location location)
Create an instance from skylark objectsabstract com.google.common.collect.ImmutableSet<String>
labels()
static TestInfo
of(String testName, String testCaseName, com.google.common.collect.ImmutableSet<String> labels, com.google.common.collect.ImmutableSet<String> contacts, Optional<Long> timeoutMs, boolean runTestsSeparately, String type)
Create an instance from native valuesabstract boolean
runTestsSeparately()
abstract String
testCaseName()
abstract String
testName()
abstract Object
timeoutMs()
abstract String
type()
Optional<Long>
typedTimeoutMs()
-
Methods inherited from class com.facebook.buck.core.rules.providers.impl.BuiltInProviderInfo
getDeclaredClass, getProvider, getProviderInfo, isImmutable
-
Methods inherited from class com.facebook.buck.core.starlark.compatible.BuckStarlarkStructObject
getErrorMessageForUnknownField, getFieldNames, getMethods, getValue, repr
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
PROVIDER
public static final BuiltInProvider<TestInfo> PROVIDER
-
-
Method Detail
-
testName
public abstract String testName()
- Returns:
- the type of test. This should generally be the rule name
-
testCaseName
public abstract String testCaseName()
- Returns:
- the name of the test case
-
labels
public abstract com.google.common.collect.ImmutableSet<String> labels()
-
contacts
public abstract com.google.common.collect.ImmutableSet<String> contacts()
-
timeoutMs
public abstract Object timeoutMs()
-
runTestsSeparately
public abstract boolean runTestsSeparately()
-
type
public abstract String type()
- Returns:
- the 'type' to pass to the external test runner
-
of
public static TestInfo of(String testName, String testCaseName, com.google.common.collect.ImmutableSet<String> labels, com.google.common.collect.ImmutableSet<String> contacts, Optional<Long> timeoutMs, boolean runTestsSeparately, String type)
Create an instance from native values
-
instantiateFromSkylark
public static TestInfo instantiateFromSkylark(String testName, String testCaseName, com.google.devtools.build.lib.syntax.SkylarkList<String> labels, com.google.devtools.build.lib.syntax.SkylarkList<String> contacts, Object timeoutMs, boolean runTestsSeparately, String type, com.google.devtools.build.lib.events.Location location) throws com.google.devtools.build.lib.syntax.EvalException
Create an instance from skylark objects- Throws:
com.google.devtools.build.lib.syntax.EvalException
-
-