2025 年 3 月 27 日より、AOSP のビルドとコントリビューションには aosp-main
ではなく android-latest-release
を使用することをおすすめします。詳細については、AOSP の変更をご覧ください。
設定のドライランを実行する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Trade Federation(TF)の設定を dry-run
でドライランすると、TF を適切に設定できます。
TF にはこのためのメカニズムが 2 つあります。
全般設定
dry-run
コマンドは、設定が正しく解析されていて実行可能かどうかを確認します。このコマンドは TF を実行しないため、検証は TF 設定構文に限定されます。
テストスイートの設定
CTS などのテストスイート設定の場合は、--collect-tests-only
コマンドを使用できます。列挙されたテストケースを除くすべての処理を実行します。APK のインストールなど、残りのセットアップ手順はすべて実行されます。
実際にテストを実行せずに、設定が想定どおりに行われるようにする場合に便利なオプションです。
collect-tests-only のサポート
collect-tests-only のサポートは ITestCollector から利用できます。
このインターフェースを実装するテストランナーは、テストケースを実行する代わりに、テストケースを列挙します。
InstrumentationTest はこのインターフェースの実装例です。
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-03-26 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-03-26 UTC。"],[],[],null,["# Dry run a configuration\n\nIt can be convenient to `dry-run` a Trade Federation (TF) configuration to\nensure that TF is properly configured.\n\nThere are two different mechanisms in TF for this.\n\nGeneral configuration\n---------------------\n\nThe `dry-run` command checks that a configuration is parsed correctly and is\nrunnable. The command does not run TF so this validation is limited to the\nTF configuration syntax.\n\nConfiguration for test suites\n-----------------------------\n\nFor the test suite configurations, such as CTS, the `--collect-tests-only`\ncommand is available. It runs everything except the test cases, which are\nenumerated. However, it does run all the other setup steps, like installing\nAPKs.\n\nThis is a convenient option to ensure that a configuration runs as expected\nwithout actually running the tests.\n\n### Support for collect-tests-only\n\nThe support for the collect-tests-only is exposed via\n[ITestCollector](/reference/tradefed/com/android/tradefed/testtype/ITestCollector).\n\nA test runner that implements this interface enumerates its test cases\ninstead of running them.\n\n[InstrumentationTest](/reference/tradefed/com/android/tradefed/testtype/InstrumentationTest)\nis an example implementation of that interface."]]