हमारा सुझाव है कि 27 मार्च, 2025 से AOSP को बनाने और उसमें योगदान देने के लिए, aosp-main
के बजाय android-latest-release
का इस्तेमाल करें. ज़्यादा जानकारी के लिए, AOSP में हुए बदलाव लेख पढ़ें.
किसी कॉन्फ़िगरेशन को ड्राय रन करना
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह dry-run
ट्रेड फ़ेडरेशन (टीएफ़) कॉन्फ़िगरेशन को जांचने के लिए सुविधाजनक हो सकता है, ताकि यह पक्का किया जा सके कि टीएफ़ सही तरीके से कॉन्फ़िगर किया गया है.
इसके लिए, TF में दो अलग-अलग तरीके हैं.
सामान्य कॉन्फ़िगरेशन
dry-run
कमांड यह जांच करता है कि कॉन्फ़िगरेशन को सही तरीके से पार्स किया गया है या नहीं और उसे चलाया जा सकता है या नहीं. यह निर्देश, TF को नहीं चलाता है. इसलिए, पुष्टि करने की यह सुविधा, TF कॉन्फ़िगरेशन सिंटैक्स तक ही सीमित है.
टेस्ट सुइट के लिए कॉन्फ़िगरेशन
CTS जैसे टेस्ट सुइट कॉन्फ़िगरेशन के लिए, --collect-tests-only
कमांड उपलब्ध है. यह उन टेस्ट केस को छोड़कर, सभी को चलाता है जिन्हें सूची में शामिल किया गया है. हालांकि, यह सेटअप के अन्य सभी चरणों को चलाता है, जैसे कि APKs इंस्टॉल करना.
यह एक आसान विकल्प है. इससे यह पक्का किया जा सकता है कि कोई कॉन्फ़िगरेशन, असल में जांच किए बिना भी उम्मीद के मुताबिक काम करता है.
सिर्फ़ टेस्ट इकट्ठा करने की सुविधा के लिए सहायता
सिर्फ़ टेस्ट इकट्ठा करने की सुविधा, ITestCollector के ज़रिए उपलब्ध कराई जाती है.
इस इंटरफ़ेस को लागू करने वाला टेस्ट रनर, अपने टेस्ट केस को चलाने के बजाय उनकी गिनती करता है.
InstrumentationTest, उस इंटरफ़ेस को लागू करने का उदाहरण है.
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-27 (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-07-27 (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."]]