I want to specify dependencies for my tests and after reading the Gradle Dependency Management Basics I though I could just add testCompile
calls to my dependency declarations like this:
dependencies {
compile group: 'com.squareup.dagger', name: 'dagger', version: '1.0.0'
testCompile group: 'junit', name: 'junit', version: '4.11'
testCompile group: 'com.squareup', name: 'fest-android', version: '1.0.1'
}
This, however, fails with this error message:
> Could not find method testCompile() for arguments [{group=junit, name=junit, version=4.11}] on project ':simstatus'.
Am I missing something here?