square/gradle-android-test-plugin — pull request #24 by brennantaylor (2013-09-17 06:34:54+00:00)
Title: Allow test location to be configured like sourceSets

This allows configuration more or less how you wanted. For example:

androidTest {
sourceSets {
main {
java.srcDirs = ['robolectric']
}
}
}

I wanted this mostly for review if you had comments/questions. I'd like to add tests too.