I was able to find a solution that works, although not sure if it's the 
best approach:

https://android-review.googlesource.com/#/c/130760

If you find that this is not the right approach, feel free to -2.  This 
change allows the unit test from my first message to pass.


On Tuesday, February 10, 2015 at 2:18:49 PM UTC-5, Michal Bendowski wrote:
>
> I was planning to work on a fix tomorrow (London time). 
>
> On Tue, Feb 10, 2015, 18:55 Joe Hansche <[email protected] <javascript:>> 
> wrote:
>
>> This is related to the Unit Test support being added to Gradle 1.1.0, and 
>> the linked bug report [1].
>>
>> The problem appears to be that the "compile<Variant>UnitTestJava" task 
>> does not copy the resources from src/test/resources into the classpath.  
>> The main task ("compile<Variant>Java"), on the other hand, *does* copy the 
>> resources.
>>
>> I've written a unit test[2] that confirms the behavior is broken, but not 
>> familiar enough with the rest of the plugin's inner workings to move toward 
>> a fix.
>>
>> Any pointers would be useful.  Also, if anyone else is already working on 
>> a fix for this, please let me know.
>>
>> [1] https://code.google.com/p/android/issues/detail?id=136013
>> [2] https://android-review.googlesource.com/#/c/130710/
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "adt-dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to