Missing artifact test selector / left build options in Android Studio 2 Beta 5

To run benchmarks from Android Studio, I usually select Android Tool Tests as the test artifact to be created through the Build Options window. I recently upgraded to Android Studio 2 Beta 5, and the "Test Artifact" selector is no longer visible. Where did he go? Was there any other configuration?

+50
android-studio android-gradle
Feb 29 '16 at 19:45
source share
3 answers

I found this in the Android Studio 2.0 Preview 5 release notes: "The experimental test artifacts feature (where both unit test and instrumentation tests are both enabled by the IDE) has been further enhanced and is now enabled by default ."

To disable the simultaneous construction of unit and control tests, go here: File menu → Settings → Assembly, Execution, Deployment → Assembly Tools → Gradle → Experimental. Then uncheck this box: “Enable all test artifacts (Unit Test and Instrumentation Test) in Android projects.”

Instead of navigating through the settings, you can also use the search box at the top of the Settings dialog box and simply search for “tools”.

+80
Feb 29 '16 at 19:45
source share

Just like @markproxy said there is no “Test artifact” with “Android Instrumentation Tests” to choose from. This window looked like this in versions of Android Studio 1.5x enter image description here

+3
Mar 19 '16 at 9:17
source share

From what I see in Android Studio 2.3.3, this parameter has gone 4 times.

@markproxy: this is because this function is no longer experimental, but built-in in Android Studio as a function, and there is no need to disable it, I suppose.

enter image description here

Here, for any need, there is a link to the manual for the Android Unit Test: Getting started with testing (including test instruments under test)

+1
Jul 14 '17 at 7:25
source share



All Articles