Project: /_project.yaml Book: /_book.yaml

{% include “_versions.html” %}

Tests

As an open source operating system, Android offers many testing and debugging tools. First, take a moment to understand the basics{: .external} of testing and then explore the options below.

Atest

Atest{: .external} is a command line tool that allows users to build, install and run Android tests locally.

Compatibility Test Suite (CTS)

The Compatibility Test Suite (CTS) is a free, commercial-grade test suite that runs on a desktop machine and executes test cases directly on attached devices or an emulator.

Vendor Test Suite (VTS)

The Vendor Test Suite (VTS) automates HAL and OS kernel testing. To use VTS to test an Android native system implementation, set up a testing environment then test a patch using a VTS plan.

Trade Federation Testing Infrastructure

Trade Federation (tradefed or TF for short) is a continuous test framework designed for running tests on Android devices. TF can run functional tests locally, at your desk, within your platform checkout. There are two required files to run a test in TF, a java test source and an XML config. See RebootTest.java{: .external} and reboot.xml{: .external} for examples.

Debugging

The Debugging section summarizes useful tools and related commands for debugging, tracing, and profiling native Android platform code when developing platform-level features.