diff --git a/docs/html/images/tools/studio-test-module.png b/docs/html/images/tools/studio-test-module.png new file mode 100644 index 0000000000000..c0aa58ff0f59b Binary files /dev/null and b/docs/html/images/tools/studio-test-module.png differ diff --git a/docs/html/tools/studio/studio-features.jd b/docs/html/tools/studio/studio-features.jd index c2228010d248a..97174620434fb 100644 --- a/docs/html/tools/studio/studio-features.jd +++ b/docs/html/tools/studio/studio-features.jd @@ -14,6 +14,7 @@ page.tags=studio, features
  • Android Studio and Project Settings
  • Fingerprint Support
  • Editor Support for the Latest Android APIs
  • +
  • Test APK Module
  • See also

    @@ -148,3 +149,104 @@ and <animated-selector>, are supported.

    +

    Test APK Module

    +

    Android Studio supports adding a separate test module to your app so you can +generate a test APK. This test module resides at the same level as your app and +contains: the tests and instrumentation used to run the test APK on an Android device; an +Android Manifest.xml file for test APK configuration settings; and, a +build.gradle file for build settings.

    + +

    The test module cannot contain a src/androidTest/ folder and does +not support build variants. If you have different product flavors in your main application APK, +create a different test module for each build variant.

    + + +

    To create a test APK module: + +

    + + +

    In the {@code test} module in this example, the {@code build.gradle} file specifies the +properties for the project path and target build type variant.

    + +

    +

    Figure 3. Test module for APK testing.

    + + +

    Note: By default, the test module's build variant uses the +debug build type. You can configure additional build types using the +testBuildType property in the defaultConfig block in the main +app's build.gradle file.

    + + +