[ Web Proxy ]
URL:
Viewing: https://source.android.com/docs/core/tests/development [Back]  [Original]

Test development workflow  |  Android Open Source Project Skip to main content
Android Open Source Project [Android Open Source Project]

Test development workflow Stay organized with collections Save and categorize content based on your preferences.

To integrate tests into a platform continuous testing service, they should meet the guidelines on this page and follow this recommended flow.

  1. Use the Soong build system for Simple Test Configuration.
  2. Employ Test Mapping to create pre- and post-submit test rules directly in the Android source tree.
  3. Run tests locally using Atest.

Test types

Supported test types are:

Functional tests make assertions of pass or fail on test cases, while metrics tests generally perform an action repeatedly to collect timing metrics.

With standardized input/output format, the need for customized result parsing and post-processing per test is eliminated, and generic test harnesses can be used for all tests that fit into the convention. See the Trade Federation Overview for the continuous test framework included with Android.

Test case guidelines

Test cases executed through the continuous testing service are expected to be hermetic, meaning that all dependencies are declared and provided with the tests. See Hermetic Servers on the Google Testing Blog for an understanding of this principle. In short, hermetic tests require no:

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-06-17 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-06-17 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page