테스트매핑
public class TestMapping
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.testmapping.TestMapping |
TEST_MAPPING 파일을 로드하기 위한 클래스입니다.
요약
필드 | |
---|---|
public static final Pattern | MAINLINE_REGEX |
public static final String | TEST_MAPPINGS_ZIP |
public static final String | TEST_SOURCES
|
공개 생성자 | |
---|---|
TestMapping () 빈 | |
TestMapping ( testMappingRelativePaths, boolean ignoreTestMappingImports) TestMapping ( testMappingRelativePaths, boolean ignoreTestMappingImports) |
공개 메소드 | |
---|---|
static File | extractTestMappingsZip (File testMappingsZip) zip 파일을 추출하고 압축이 풀린 파일의 내용이 포함된 디렉터리를 반환합니다. |
getAllTests (File testMappingsDir) 특정 디렉터리의 TEST_MAPPING 파일에서 모든 테스트를 찾는 도우미입니다. | |
static Matcher | getMainlineTestModuleName ( TestInfo info) 매개변수화된 메인라인 테스트를 위한 일치자를 가져오는 도우미입니다. |
getTests ( IBuildInfo buildInfo, String testGroup, boolean hostOnly, keywords, ignoreKeywords) getTests ( IBuildInfo buildInfo, String testGroup, boolean hostOnly, keywords, ignoreKeywords) getTests ( IBuildInfo buildInfo, String testGroup, boolean hostOnly, keywords, ignoreKeywords) 기기 빌드의 아티팩트를 기반으로 모든 TEST_MAPPING 파일에서 모든 테스트를 찾는 도우미입니다. | |
getTests ( IBuildInfo buildInfo, String testGroup, boolean hostOnly, keywords, ignoreKeywords, extraZipNames, matchedPatternPaths) getTests ( IBuildInfo buildInfo, String testGroup, boolean hostOnly, keywords, ignoreKeywords, extraZipNames, matchedPatternPaths) getTests ( IBuildInfo buildInfo, String testGroup, boolean hostOnly, keywords, ignoreKeywords, extraZipNames, matchedPatternPaths) getTests ( IBuildInfo buildInfo, String testGroup, boolean hostOnly, keywords, ignoreKeywords, extraZipNames, matchedPatternPaths) getTests ( IBuildInfo buildInfo, String testGroup, boolean hostOnly, keywords, ignoreKeywords, extraZipNames, matchedPatternPaths) 지정된 아티팩트를 기반으로 모든 TEST_MAPPING 파일에서 모든 테스트를 찾는 도우미입니다. | |
void | listTestMappingFiles (Path testMappingDir, Path testMappingsRootDir, filePaths) listTestMappingFiles (Path testMappingDir, Path testMappingsRootDir, filePaths) 모든 테스트 매핑 파일을 나열하고 모든 상위 디렉터리 및 관련 가져오기 경로를 찾는 도우미입니다. |
필드
MAINLINE_REGEX
public static final Pattern MAINLINE_REGEX
TEST_MAPPINGS_ZIP
public static final String TEST_MAPPINGS_ZIP
테스트_소스
public static final String TEST_SOURCES
공개 생성자
테스트매핑
public TestMapping (testMappingRelativePaths, boolean ignoreTestMappingImports)
TestMapping
개체를 생성하는 생성자입니다.
매개변수 | |
---|---|
testMappingRelativePaths | ERROR(/List ) ERROR(/List ) TEST_MAPPING 파일 경로에 추가합니다. |
ignoreTestMappingImports | boolean : 가져오기를 무시하는 ERROR(/boolean) 입니다. |
공개 메소드
extractTestMappingsZip
public static File extractTestMappingsZip (File testMappingsZip)
zip 파일을 추출하고 압축이 풀린 파일의 내용이 포함된 디렉터리를 반환합니다.
매개변수 | |
---|---|
testMappingsZip | File : 추출할 테스트 매핑 zip의 ERROR(/File) . |
보고 | |
---|---|
File | 테스트 매핑 zip의 임시 디렉터리를 가리키는 ERROR(/File) 입니다. |
getAllTests
publicgetAllTests (File testMappingsDir)
특정 디렉터리의 TEST_MAPPING 파일에서 모든 테스트를 찾는 도우미입니다.
매개변수 | |
---|---|
testMappingsDir | File : 모든 테스트 매핑 파일이 포함된 디렉터리인 ERROR(/File) . |
보고 | |
---|---|
지정된 디렉터리와 해당 하위 디렉터리에 있는 테스트의 Map<String, Set<TestInfo>> . |
getMainlineTestModuleName
public static Matcher getMainlineTestModuleName (TestInfo info)
매개변수화된 메인라인 테스트를 위한 일치자를 가져오는 도우미입니다.
매개변수 | |
---|---|
info | TestInfo |
보고 | |
---|---|
Matcher | 매개변수화된 메인라인 테스트에 대한 ERROR(/Matcher) . |
던지기 | |
---|---|
ConfigurationException |
getTests
publicgetTests (IBuildInfo buildInfo, String testGroup, boolean hostOnly, keywords, ignoreKeywords)
기기 빌드의 아티팩트를 기반으로 모든 TEST_MAPPING 파일에서 모든 테스트를 찾는 도우미입니다.
매개변수 | |
---|---|
buildInfo | IBuildInfo : 빌드를 설명하는 IBuildInfo . |
testGroup | String : 테스트 그룹의 String . |
hostOnly | boolean : 호스트에서 실행 중인 테스트만 반환하고 장치가 필요하지 않은 경우 true입니다. 장치 실행이 필요한 테스트를 반환하려면 false입니다. |
keywords | String 집합입니다. |
ignoreKeywords | String 집합입니다. |
보고 | |
---|---|
빌드 아티팩트 test_mappings.zip에 설정된 테스트의 Set<TestInfo> . |
getTests
publicgetTests (IBuildInfo buildInfo, String testGroup, boolean hostOnly, keywords, ignoreKeywords, extraZipNames, matchedPatternPaths)
지정된 아티팩트를 기반으로 모든 TEST_MAPPING 파일에서 모든 테스트를 찾는 도우미입니다. 이는 제품군 실행이 특정 그룹에 대한 TEST_MAPPING 파일의 모든 테스트를 실행해야 하는 경우(예: 사전 제출)에 필요합니다.
매개변수 | |
---|---|
buildInfo | IBuildInfo : 빌드를 설명하는 IBuildInfo . |
testGroup | String : 테스트 그룹의 String . |
hostOnly | boolean : 호스트에서 실행 중인 테스트만 반환하고 장치가 필요하지 않은 경우 true입니다. 장치 실행이 필요한 테스트를 반환하려면 false입니다. |
keywords | String 집합입니다. |
ignoreKeywords | String 집합입니다. |
extraZipNames | String 집합입니다. |
matchedPatternPaths | ERROR(/Set ) ERROR(/Set ) 파일 경로가 패턴과 일치하도록 합니다. |
보고 | |
---|---|
빌드 아티팩트 test_mappings.zip에 설정된 테스트의 Set<TestInfo> . |
목록테스트매핑파일
public void listTestMappingFiles (Path testMappingDir, Path testMappingsRootDir,filePaths)
모든 테스트 매핑 파일을 나열하고 모든 상위 디렉터리 및 관련 가져오기 경로를 찾는 도우미입니다.
매개변수 | |
---|---|
testMappingDir | Path : TEST_MAPPING 파일 상위 디렉터리에 대한 ERROR(/Path) . |
testMappingsRootDir | Path : 빌드에 대한 모든 TEST_MAPPING 파일의 폴더에 대한 ERROR(/Path) . |
filePaths | ERROR(/Set ) ERROR(/Set ) 모든 TEST_MAPPING 경로를 저장합니다. |