I checked the similar question (similar question, sample gradle build file ). but that solution did not worked for me. I want to run junits using gradle file, for android eclipse project. Structure of Source project is below:
Application:
-src
-test
Structure of Test project:
TestProject:
- test (linked to test folder in source project)
Gradle file of source project is:
dependencies{
compile project (':lib_project')
}
android{
sourceSets{
main{
}
test{
java{
srcDirs = ['test/com/project/testsuites']
}
}
androidTest.setRoot('tests')
}
}
Please suggest the updatations/changes need to implemented in gradle file.