title: How to configure Proguard for Android instrumentation test inside library project?
body: <p>The proguard configurations is a pain when we try to configure rules for instrumentation tests that reside inside library module. There was answer to the <a href="https://stackoverflow.com/questions/26482119/android-unit-tests-with-proguard-enabled">same kinda question</a> before, but it works only for application module not library one.</p>
  
  <p>Is there anyway to enforce proguard rules to be applied for instrumentation test app that is part of library module?</p>
  
  <pre><code>apply plugin: 'com.android.library'
  
  android {
    buildTypes {
     all {
       minifyEnabled true
       proguardFile 'proguard-rules.pro'
       testProguardFile 'test-proguard-rules.pro'
     }
    }
  }
  </code></pre>