KUnitModuleTest
public
class
KUnitModuleTest
extends ExecutableTargetTest
| java.lang.Object | |||
| ↳ | com.android.tradefed.testtype.binary.ExecutableBaseTest | ||
| ↳ | com.android.tradefed.testtype.binary.ExecutableTargetTest | ||
| ↳ | com.android.tradefed.testtype.binary.KUnitModuleTest | ||
デバイスで KUnit テスト モジュールを実行するためのテストランナー。
概要
フィールド | |
|---|---|
public
static
final
String |
KUNIT_DEBUGFS_PATH
|
public
static
final
String |
KUNIT_RESULTS_FMT
|
パブリック コンストラクタ | |
|---|---|
KUnitModuleTest()
|
|
パブリック メソッド | |
|---|---|
String
|
findBinary(String binary)
バイナリを検索して実行できるようにします。 |
boolean
|
getCollectTestsOnly()
|
void
|
run(TestInformation testInfo, ITestInvocationListener listener)
テストを実行し、結果をリスナーに報告します。 |
void
|
runBinary(String modulePath, ITestInvocationListener listener, TestDescription description)
指定されたパスでバイナリを実際に実行します。 |
保護されたメソッド | |
|---|---|
boolean
|
doesRunBinaryGenerateTestResults()
|
|
getAllTestCommands()
整合性を確保するため、mBinaryPaths を mTestCommands に変換。 |
フィールド
KUNIT_DEBUGFS_PATH
public static final String KUNIT_DEBUGFS_PATH
KUNIT_RESULTS_FMT
public static final String KUNIT_RESULTS_FMT
パブリック コンストラクタ
KUnitModuleTest
public KUnitModuleTest ()
パブリック メソッド
findBinary
public String findBinary (String binary)
バイナリを検索して実行できるようにします。
| パラメータ | |
|---|---|
binary |
String: バイナリのパスまたはバイナリ名。 |
| 戻り値 | |
|---|---|
String |
バイナリのパス。見つからない場合は null。 |
| 例外 | |
|---|---|
DeviceNotAvailableException |
|
getCollectTestsOnly
public boolean getCollectTestsOnly ()
| 戻り値 | |
|---|---|
boolean |
|
ホームラン
public void run (TestInformation testInfo, ITestInvocationListener listener)
テストを実行し、結果をリスナーに報告します。
| パラメータ | |
|---|---|
testInfo |
TestInformation: テストの実行に役立つ情報が含まれる TestInformation オブジェクト。 |
listener |
ITestInvocationListener: テスト結果の ITestInvocationListener |
| 例外 | |
|---|---|
DeviceNotAvailableException |
|
runBinary
public void runBinary (String modulePath,
ITestInvocationListener listener,
TestDescription description)指定されたパスでバイナリを実際に実行します。
| パラメータ | |
|---|---|
modulePath |
String: バイナリのパス。 |
listener |
ITestInvocationListener: 結果を報告するリスナー。 |
description |
TestDescription: 進行中のテスト。 |
| 例外 | |
|---|---|
DeviceNotAvailableException |
|
保護されたメソッド
doesRunBinaryGenerateTestResults
protected boolean doesRunBinaryGenerateTestResults ()
| 戻り値 | |
|---|---|
boolean |
|
getAllTestCommands
protectedgetAllTestCommands ()
整合性を保つため、mBinaryPaths を mTestCommands に変換しました。
| 戻り値 | |
|---|---|
|
testCommands の MapERROR(/LinkedHashMap)<string, string="">。</string,> |