title: Using proguard with espresso/androidTest
body: <p>I'm trying to configure proguard to use it with my espresso UI test flavor. The thing is Proguard tends to ignore my debug proguard config. </p>
  
  <p>This is how the config looks:</p>
  
  <pre><code>buildTypes {
      debug {
          minifyEnabled true
          proguardFiles 'proguard-debug.pro'
          testProguardFile 'proguard-debug.pro'
          signingConfig signingConfigs.release
      }
  }
  </code></pre>
  
  <p>I added <code>testProguardFile</code> but it doesn't seem to work on <code>androidTest</code>. I'm running <code>mockDebug</code> flavor variant. When I just run the app it works fine, but when I try to run test which is located in <code>adnroidTest</code> it won't run due to proguard warnings, like the proguard file wasn't processed at all and the file is pretty straight forward:</p>
  
  <p><strong>proguard-debug.pro</strong></p>
  
  <pre><code>-dontobfuscate
  -dontoptimize
  -dontwarn
  </code></pre>
  
  <p>Before someone starts to advise me turning off proguard for debug builds: I need to have it enabled because of multidex.</p>