I have a project using Gradle. Now I am trying to add our tests to the assembly. I'm not quite sure how this works, or what actall syntax will use.
Here is the build script for the test application I'm trying to get. My tests are in the src / instrumentTest / java directory.
buildscript { repositories { maven { url 'http://repo1.maven.org/maven2' } } dependencies { classpath 'com.android.tools.build:gradle:0.4' } } apply plugin: 'android' dependencies { compile files('libs/android-support-v4.jar') } android { compileSdkVersion 17 buildToolsVersion "17.0.0" defaultConfig { minSdkVersion 8 targetSdkVersion 16 testPackage "com.example.myapplication.test" testInstrumentationRunner "android.test.InstrumentationTestRunner" } }
When I build, I get the following error.
FAILURE: build failed with exception.
source share