Specifying test dependencies with the Gradle Android build system -
i want specify dependencies tests , after reading gradle dependency management basics though add testcompile
calls dependency declarations 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 error message:
> not find method testcompile() arguments [{group=junit, name=junit, version=4.11}] on project ':simstatus'.
am missing here?
the android build system doesn't use standard gradle java plugin.
its documentation says:
as mentioned previously, next main sourceset androidtest sourceset, located default in src/androidtest/
additionally, sourceset can configured have own dependencies. default, application , own dependencies added test app classpath, can extended with
dependencies { androidtestcompile 'com.google.guava:guava:11.0.2' }
Comments
Post a Comment