From b9f4ca896498405ca1e4496ab80b7749fab3393f Mon Sep 17 00:00:00 2001 From: Rich Slogar Date: Wed, 8 Jul 2015 17:59:39 -0700 Subject: docs: studio 1.3 separate test folder Change-Id: I298bc3b336edfe3ef90b37c6dffbcf92b0b21270 --- docs/html/images/tools/studio-test-module.png | Bin 0 -> 146249 bytes docs/html/tools/studio/studio-features.jd | 102 ++++++++++++++++++++++++++ 2 files changed, 102 insertions(+) create mode 100644 docs/html/images/tools/studio-test-module.png 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 0000000..c0aa58f 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 76eba10..9abd5c1 100644 --- a/docs/html/tools/studio/studio-features.jd +++ b/docs/html/tools/studio/studio-features.jd @@ -13,6 +13,7 @@ page.tags=studio, features
  • Expanded Template and Form Factor Support
  • Android Studio and Project Settings
  • Editor Support for the Latest Android APIs
  • +
  • Test APK Module
  • See also

    @@ -121,3 +122,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.

    + + + -- cgit v1.1