TestMapping

public class TestMapping
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.TestMapping


A class for loading a TEST_MAPPING file.

Summary

Nested classes

class TestMapping.TestInfo

Stores the test information set in a TEST_MAPPING file. 

class TestMapping.TestOption

Stores the test option details set in a TEST_MAPPING file. 

Public constructors

TestMapping(Path path)

Constructor to create a TestMapping object from a path to TEST_MAPPING file.

Public methods

List<TestMapping.TestInfo> getTests(String testGroup)

Helper to get all tests set in a TEST_MAPPING file for a given grou.

static Set<TestMapping.TestInfo> getTests(IBuildInfo buildInfo, String testGroup)

Helper to find all tests in all TEST_MAPPING files.

Public constructors

TestMapping

public TestMapping (Path path)

Constructor to create a TestMapping object from a path to TEST_MAPPING file.

Parameters
path Path: The Path to a TEST_MAPPING file.

Public methods

getTests

public List<TestMapping.TestInfo> getTests (String testGroup)

Helper to get all tests set in a TEST_MAPPING file for a given grou.

Parameters
testGroup String: A String of the test group.

Returns
List<TestMapping.TestInfo> A List<TestInfo> of the test infos.

getTests

public static Set<TestMapping.TestInfo> getTests (IBuildInfo buildInfo, 
                String testGroup)

Helper to find all tests in all TEST_MAPPING files. This is needed when a suite run requires to run all tests in TEST_MAPPING files for a given group, e.g., presubmit.

Parameters
buildInfo IBuildInfo

testGroup String: a String of the test group.

Returns
Set<TestMapping.TestInfo> A Set<TestInfo> of tests set in the build artifact, test_mappings.zip.