title: Which gradle task builds AndroidTest .*apk and doesn't do anything additional
body: <p>Let's say I have a build variant named <code>debugAutomation</code>.</p>
  
  <p>I wan't to build this variant into .*apk file using gradle command. I do:</p>
  
  <pre><code>./gradlew assembleDebugAutomation
  </code></pre>
  
  <p>This provides me with application .*apk. But to perform automation tests in espresso I also need test .*apk. So I do again:</p>
  
  <pre><code>./gradlew assembleDebugAutomationAndroidTest
  </code></pre>
  
  <p>And .*apk with <code>-androidTest</code> is in my <code>outputs/apk/</code> folder of my project.</p>
  
  <p>Where is the trick and problem?</p>
  
  <p>a) while performing <code>assembleDebugAutomation</code> I have only application .*apk built.</p>
  
  <p>b) while performing <code>assembleDebugAutomationAndroidTest</code> then during build process THIS APK BEING INSTALLED ON ALL CURRENTLY VISIBLE DEVICES IN ADB.</p>
  
  <p>My question is: How can I build <code>androidTest</code> .*apk with gradle command so it ONLY BUILDS APK and DOESN'T INSTALL IT on currently visible devices in ADB during build process?</p>