2025 年 3 月 27 日より、AOSP のビルドとコントリビューションには aosp-main
ではなく android-latest-release
を使用することをおすすめします。詳細については、AOSP の変更をご覧ください。
Tradefed を開発する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
このセクションは、Tradefed 開発者を対象としています。TF の拡張または新しいテストサポートの追加に関心がある場合は、このセクションをご覧ください。
オープンソース
Trade Federation のオープンソース版を使用する場合は、次のコマンドを使用して、Trade Federation の AOSP main
ブランチをチェックアウトし、ビルドします。
cd <sourceroot>
mkdir main
cd main
repo init -u https://android.googlesource.com/platform/manifest -b main
repo sync -c -j8
source build/envsetup.sh
lunch aosp_cf_x86_64_phone-userdebug # or any other device target
m -j tradefed-all
詳細については、開発環境をご覧ください。
オープンソースの Trade Federation コードはすべて、AOSP の tools/tradefederation/ git プロジェクトに保存されています。コードを作成して変更を送信する際は、オープンソースのガイドラインを念頭に置いてください。
あるいは、Trade Federation フレームワーク自体ではなく、それ以外のテストやユーティリティを作成している場合は、迅速な承認のために Trade Federation contrib プロジェクトの利用を検討してください。
コーディング スタイル
Trade Federation は Android コーディング スタイル ガイドラインに従っており、インターフェース名の前に「I」を付けて明確化しています(例: ITestDevice)。
Eclipse を使用して開発する
Tradefed の開発に Eclipse を使用することに関心がある場合は、環境設定のヒントについて Eclipse IDE の設定をご覧ください。
Tradefed のテストを実行する
Trade Federation に加えた変更をテストする方法については、Trade Federation のテストの実行をご覧ください。
アーキテクチャ
Tradefed の仕組みについて理解を深めるには、アーキテクチャのセクションをご覧ください。
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。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,["# Develop Tradefed\n\nThis section is aimed at Tradefed developers. If you are interested in extending\nTF or adding new test support, this is the section for you.\n\nOpen source\n-----------\n\nIf you plan to use the open source variant of Trade Federation, use these\ncommands to check out and build the AOSP `android-latest-release` branch of\nTrade Federation: \n\n cd \u003csourceroot\u003e\n mkdir android-latest-release\n cd android-latest-release\n repo init -u https://android.googlesource.com/platform/manifest -b android-latest-release\n repo sync -c -j8\n source build/envsetup.sh\n lunch aosp_cf_arm64_only_phone-userdebug # or any other device target\n m -j tradefed-all\n\nSee [Development Environment](/docs/core/tests/tradefed/fundamentals/machine_setup)\nfor more details.\n\nAll open-sourceable Trade Federation code is stored in the\n[tools/tradefederation/](https://android.googlesource.com/platform/tools/tradefederation/)\ngit project of AOSP. Please keep the\n[open source guidelines](/docs/setup/contribute/code-style)\nin mind when writing code and submitting changes.\n\nAlternatively, if you are creating tests/utilities that use Trade Federation but\naren't working on the framework itself, consider placing your work inside one of\nthe [Trade Federation contrib projects](/docs/core/tests/tradefed/development/contribute-noncore) to speed approvals.\n\nCoding style\n------------\n\nTrade Federation follows the\n[Android coding style guidelines](/source/code-style),\nwith the following clarifications: interface names are prefixed with 'I' e.g.\nITestDevice.\n\nDevelop using Eclipse\n---------------------\n\nIf you are interested in using Eclipse in developing Tradefed, refer to\n[Set up Eclipse IDE](/docs/core/tests/tradefed/development/eclipse) for tips on\nsetting up your environment.\n\nRun Tradefed's tests\n--------------------\n\nYou made a change to Trade Federation and you are searching how to test it? see\n[Running Trade Federation's tests](/docs/core/tests/tradefed/development/tf-tests).\n\nArchitecture\n------------\n\nIf you seek a deeper understanding of the innerworkings of Tradefed, see the\n[Architecture](/docs/core/tests/tradefed/architecture) section."]]