Extending classpath for Test task

Hi dev,

could you drop a clue how to extend classpath container in Test task? I’m not telling about extending the source set. I’m currently working on putting together groovy power with robolectric.


The Test task class has a property for setting the classpath. You can add other JAR files to that property if you need to. Is that what you are asking?

Hi Ben,

thanks for response. I’m able to check this field on test object but once I read from it the test aren’t run at at all. I’m not sure if it’s because I’m making modification during ‘apply’

you can check the code here https://github.com/pjakubczyk/robolectric-plugin/blob/master/robolectric-plugin/src/main/groovy/com/novoda/gradle/robolectric/RobolectricPlugin.groovy

Would you mind providing us with a simplified example that reproduces the issue?