spock icon indicating copy to clipboard operation
spock copied to clipboard

Added spockAndroidJar Task

Open AndrewReitz opened this issue 10 years ago • 4 comments

This task creates a jar file that has java.beans package replaced with the grooid (groovy for android) jar's version of java.beans

Relates to #60


This change is Reviewable

AndrewReitz avatar Mar 19 '15 04:03 AndrewReitz

~~I realized this doesn't get added to the task dependency chain, I'll add that in.~~

~~Also, this does not get included with the publishing jars. I will try to get that figured out but some advisement would be helpful.~~

AndrewReitz avatar Mar 21 '15 02:03 AndrewReitz

Is the new jar required for on-device testing?

robfletcher avatar Jun 03 '15 09:06 robfletcher

@robfletcher Sorry I haven't checked in on this until now. Yes, it would be helpful for on device testing, but is not required. It would allow for automatic getters and setters of java classes to be mocked.

As of right now if I have a getValue method, for example, I could not mock and provide interactions for it by writing something like value.value >> 1.

Here is everything that currently does work.

I am actually thinking that I could include spock in that library with jarjar and achieve this same result.

On another note, what would you think about adding the android-spock library to the spock orginization on github?

AndrewReitz avatar Sep 23 '16 16:09 AndrewReitz

I realized that was a long winded answer 😄

The short answer is yes, this is a jar that would allow on device spock tests to run.

AndrewReitz avatar Jun 06 '17 18:06 AndrewReitz

There hasn't been any additional show of support for this, so I'm going to close it as unplanned.

leonard84 avatar Sep 29 '22 14:09 leonard84