সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
নিম্নে অটোমেশনের কিছু সাধারণ ফর্ম রয়েছে যা আপনি আপনার CI সিস্টেমে ব্যবহার করতে চান।
মৌলিক চাকরি
বিল্ড: স্ক্র্যাচ থেকে একটি প্রকল্প তৈরি করে, আপনি নিশ্চিত হন যে নতুন পরিবর্তনগুলি সঠিকভাবে কম্পাইল করা হয়েছে এবং সমস্ত লাইব্রেরি এবং সরঞ্জাম একে অপরের সাথে সামঞ্জস্যপূর্ণ।
লিন্ট বা শৈলী পরীক্ষা: এটি একটি ঐচ্ছিক কিন্তু প্রস্তাবিত পদক্ষেপ। আপনি যখন শৈলীর নিয়মগুলি প্রয়োগ করেন এবং স্ট্যাটিক বিশ্লেষণ সম্পাদন করেন, কোড পর্যালোচনাগুলি আরও সংক্ষিপ্ত এবং ফোকাসড হতে পারে।
স্থানীয়, বা হোস্ট-সাইড পরীক্ষা : তারা স্থানীয় মেশিনে চালিত হয় যা বিল্ডটি সম্পাদন করে। অ্যান্ড্রয়েডে এটি সাধারণত JVM হয়, তাই তারা দ্রুত এবং নির্ভরযোগ্য। তারা রোবোলেক্ট্রিক পরীক্ষাগুলিও অন্তর্ভুক্ত করে।
সিআই-তে যন্ত্রযুক্ত পরীক্ষা চালানোর জন্য একাধিক বিকল্প রয়েছে:
গ্রেডল ম্যানেজড ডিভাইসগুলি ব্যবহার করার জন্য ডিভাইসগুলিকে সংজ্ঞায়িত করতে ব্যবহার করা যেতে পারে (উদাহরণস্বরূপ "এপিআই 27-এ পিক্সেল 2 এমুলেটর") এবং এটি ডিভাইসের ব্যবস্থা পরিচালনা করে।
বেশিরভাগ CI সিস্টেম অ্যান্ড্রয়েড এমুলেটরগুলি পরিচালনা করার জন্য একটি তৃতীয় পক্ষের প্লাগইন (যাকে "অ্যাকশন", "ইটিগ্রেশন" বা "স্টেপ"ও বলা হয়) নিয়ে আসে।
ফায়ারবেস টেস্ট ল্যাবের মতো ডিভাইস ফার্মে ইনস্ট্রুমেন্টেড টেস্ট অর্পণ করুন। ডিভাইস খামারগুলি তাদের উচ্চ নির্ভরযোগ্যতার জন্য ব্যবহার করা হয় এবং তারা এমুলেটর বা শারীরিক ডিভাইসে চলতে পারে।
কর্মক্ষমতা রিগ্রেশন পরীক্ষা
অ্যাপের কর্মক্ষমতা নিরীক্ষণ করতে আমরা বেঞ্চমার্ক লাইব্রেরি ব্যবহার করার পরামর্শ দিই। উন্নয়নের সময় কর্মক্ষমতা পরীক্ষার অটোমেশনের জন্য সামঞ্জস্যপূর্ণ এবং বাস্তবসম্মত পরীক্ষার ফলাফল নিশ্চিত করার জন্য শারীরিক ডিভাইসের প্রয়োজন হয়।
বেঞ্চমার্ক চালানোর জন্য অনেক সময় লাগতে পারে, বিশেষ করে যখন আপনার কাছে কোড এবং ব্যবহারকারীর ভ্রমণের উচ্চ কভারেজ থাকে যা আপনি বেঞ্চমার্ক করছেন। প্রতিটি একত্রিত বৈশিষ্ট্য বা প্রতিশ্রুতির জন্য সমস্ত বেঞ্চমার্ক চালানোর পরিবর্তে, একটি নিয়মিত নির্ধারিত রক্ষণাবেক্ষণ বিল্ডের অংশ হিসাবে সেগুলি সম্পাদন করার কথা বিবেচনা করুন, যেমন একটি রাতের বিল্ড৷
কর্মক্ষমতা নিরীক্ষণ
আপনি ধাপ ফিটিং ব্যবহার করে কর্মক্ষমতা রিগ্রেশন নিরীক্ষণ করতে পারেন। স্টেপ ফিটিং পূর্ববর্তী বিল্ড ফলাফলের একটি রোলিং উইন্ডো সংজ্ঞায়িত করে যা আপনি বর্তমান বিল্ডের সাথে তুলনা করেন। এই পদ্ধতিটি একটি রিগ্রেশন-নির্দিষ্ট মেট্রিকে বেশ কয়েকটি বেঞ্চমার্ক ফলাফলকে একত্রিত করে। রিগ্রেশন পরীক্ষার সময় শব্দ কমাতে আপনি ধাপ ফিটিং প্রয়োগ করতে পারেন।
এটি মিথ্যা পজিটিভের ঘটনাকে হ্রাস করে যা ঘটতে পারে যখন একটি একক বিল্ডের জন্য বেঞ্চমার্ক সময় ধীর হয় এবং তারপর আবার স্বাভাবিক হয়।
পরীক্ষা কভারেজ রিগ্রেশন চেক
পরীক্ষার কভারেজ হল একটি মেট্রিক যা আপনাকে এবং আপনার দলকে সিদ্ধান্ত নিতে সাহায্য করতে পারে যে পরীক্ষাগুলি পর্যাপ্ত পরিমাণে পরিবর্তন কভার করে কিনা। যাইহোক, এটি একমাত্র সূচক হওয়া উচিত নয়। একটি রিগ্রেশন চেক সেট আপ করা সাধারণ অভ্যাস যা বেস শাখার তুলনায় কভারেজ কমে গেলে ব্যর্থ হয় বা একটি সতর্কতা দেখায়।
এই পৃষ্ঠার কন্টেন্ট ও কোডের নমুনাগুলি Content License-এ বর্ণিত লাইসেন্সের অধীনস্থ। Java এবং OpenJDK হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-29 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-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# Types of CI automation\n\nThe following are some typical forms of automation that you might like to use in\nyour CI system.\n\nBasic jobs\n----------\n\n- **Build:** By building a project from scratch, you make sure that the new\n changes compile correctly and that all libraries and tools are compatible with\n each other.\n\n- **Lint or style checks:** This is an optional but recommended step. When you\n enforce style rules and perform [static analysis](/studio/write/lint), code reviews can be more\n concise and focused.\n\n- **[Local, or host-side tests](/training/testing/local-tests):** They run on the local machine that\n performs the build. On Android this is usually the JVM, so they're fast and\n reliable. They include Robolectric tests as well.\n\nInstrumented tests\n------------------\n\n[Tests that run on emulators or physical devices](/training/testing/instrumented-tests) require some provisioning,\nwaiting for devices to boot or be connected and other operations that add\ncomplexity.\n\nThere are multiple options to run instrumented tests on CI:\n\n- [Gradle Managed Devices](/studio/test/gradle-managed-devices) can be used to define the devices to use (for example \"Pixel 2 emulator on API 27\") and it handles device provisioning.\n- Most CI systems come with a third-party plugin (also called \"action\", \"integration\" or \"step\") to handle Android emulators.\n- Delegate instrumented tests to a device farm such as [Firebase Test Lab](https://firebase.google.com/docs/test-lab). Device farms are used for their high reliability and they can run on emulators or physical devices.\n\nPerformance regression tests\n----------------------------\n\nTo monitor app performance we recommend using the [benchmark libraries](/topic/performance/benchmarking/benchmarking-overview).\nAutomation of performance tests during development requires physical devices to\nensure consistent and realistic test results.\n\nRunning benchmarks can take a long time, especially when you have high coverage\nof code and user journeys that you are benchmarking. Instead of running all\nbenchmarks for every merged feature or commit, consider executing them as part\nof a regularly scheduled maintenance build, such as a nightly build.\n\n### Monitoring performance\n\nYou can monitor performance regressions using [step fitting](https://medium.com/androiddevelopers/fighting-regressions-with-benchmarks-in-ci-6ea9a14b5c71). Step\nfitting defines a rolling window of previous build results which you compare\nagainst the current build. This approach combines several benchmark results into\none regression-specific metric. You can apply step fitting to reduce noise\nduring regression testing.\n\nThis reduces the occurrence of false positives which can occur when benchmark\ntimes are slow for a single build and then normalize again.\n\nTest coverage regression checks\n-------------------------------\n\n[Test coverage](/studio/test/test-in-android-studio#view_test_coverage) is a metric that can help you and your team decide if tests\nsufficiently cover a change. However, it shouldn't be the only indicator. It is\ncommon practice to set up a regression check that fails or shows a warning when\nthe coverage goes down relative to the base branch.\n| **Note:** The coverage generated by an instrumentation test is different from that of a unit test as bigger tests typically make fewer assertions per line of tested code and their goal is different. Consider keeping two separate coverage metrics."]]