title: Test package for different flavors in Android Studio
body: <p>I am experimenting flavors on an application in androidstudio. I have to write different test classes for the flavors, as I have different class files for the flavors. But I wonder if there is any option to specify test packages for each flavor in build.gradle. Here is my build.gradle for reference. I use 0.4.6 version of AndroidStudio.</p>
  
  <pre><code>apply plugin: 'android'
  
  android {
      compileSdkVersion 19
      buildToolsVersion "19.0.1"
  
  defaultConfig {
      minSdkVersion 8
      targetSdkVersion 19
      testPackageName "com.example.tests"
  }
  
  productFlavors {
  
      Paid {
  
          packageName "com.example.paid"
  
      }
      Free {
  
          packageName "com.example.free"
      }
  }
  
  sourceSets {
      main {
          java.srcDirs = ['src/main/java']
          res.srcDirs = ['src/main/res']
      }
  
      Paid {
          java.srcDirs = ['src/Paid/java']
          res.srcDirs = ['src/Paid/res']
      }
  
      Free {
          java.srcDirs = ['src/Free/java']
          res.srcDirs = ['src/Free/res']
      }
  }
  
  signingConfigs {
  
      releaseConfig {
  
          storeFile file('filename');
          storePassword('filepwd');
          keyAlias "aliasname";
          keyPassword "aliaspassword";
      }
  
  }
  
  buildTypes {
  
      release {
  
          runProguard true
          debuggable false
          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
          signingConfig signingConfigs.releaseConfig
          packageNameSuffix ".release"
  
      }
  
      debug {
  
          runProguard false
          debuggable true
          packageNameSuffix ".debug"
  
      }       
   }
  }
  
  dependencies {
  
      compile project(':androidViewPagerIndicator_library')
      compile 'com.android.support:appcompat-v7:+'
  
  }
  </code></pre>