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”.
markproxy Feb 29 '16 at 19:45 2016-02-29 19:45
source share