IStrictShardableTest
public
interface
IStrictShardableTest
implements
IRemoteTest
com.android.tradefed.testtype.IStrictShardableTest |
A IRemoteTest
that can be sharded into separately executable sub-tests. The splitting
into sub-tests is expected to be deterministic and each sub-test should be independent in order
to allow for execution of different shards on different hosts.
Summary
Public methods | |
---|---|
abstract
IRemoteTest
|
getTestShard(int shardCount, int shardIndex)
Returns a |
Public methods
getTestShard
public abstract IRemoteTest getTestShard (int shardCount, int shardIndex)
Returns a IRemoteTest
for a single shard. This must be deterministic and always
return the same IRemoteTest
for the same input.
Parameters | |
---|---|
shardCount |
int : the number of total shards |
shardIndex |
int : the index of a test shard to return. The value is in range [0, shardCount). |
Returns | |
---|---|
IRemoteTest |
a IRemoteTest
|
Interfaces
- CodeCoverageReportFormat
- IAbi
- IAbiReceiver
- IBuildReceiver
- IDeviceTest
- IInvocationContextReceiver
- IMultiDeviceTest
- INativeDeviceTest
- IRemoteTest
- IResumableTest
- IRetriableTest
- IRuntimeHintProvider
- ISetOptionReceiver
- IShardableTest
- IStrictShardableTest
- ITestAnnotationFilterReceiver
- ITestCollector
- ITestFileFilterReceiver
- ITestFilterReceiver
Classes
- Abi
- AndroidJUnitTest
- CodeCoverageListener
- CodeCoverageTest
- CodeCoverageTestBase
- CodeCoverageTestBase.CoverageCollectingListener
- CompanionAwareTest
- DeviceBatteryLevelChecker
- DeviceJUnit4ClassRunner
- DeviceJUnit4ClassRunner.LogAnnotation
- DeviceJUnit4ClassRunner.MetricAnnotation
- DeviceJUnit4ClassRunner.TestLogData
- DeviceJUnit4ClassRunner.TestMetrics
- DeviceSuite
- DeviceTestCase
- DeviceTestResult
- DeviceTestSuite
- FakeTest
- GoogleBenchmarkResultParser
- GoogleBenchmarkTest
- GTest
- GTestListTestParser
- GTestResultParser
- GTestXmlResultParser
- HostTest
- InstalledInstrumentationsTest
- InstrumentationFileTest
- InstrumentationSerialTest
- InstrumentationTest
- InstrumentationTest.FailedTestLogcatGenerator
- InstrumentationTest.FailedTestScreenshotGenerator
- JacocoCodeCoverageTest
- JUnitRunUtil
- MetricTestCase
- MetricTestCase.LogHolder
- NativeBenchmarkTest
- NativeBenchmarkTestParser
- NativeStressTest
- NativeStressTestParser
- NoisyDryRunTest
- PythonUnitTestResultParser
- PythonUnitTestRunner
- StubTest
- SubprocessTfLauncher
- TfTestLauncher
- UiAutomatorRunner
- UiAutomatorTest
- VersionedTfLauncher
Enums
Exceptions