| Newsgroups |
gmane.comp.programming.extreme-programming |
| Message-ID |
<CADwhwbOpS1tt9sDLZfoc2i-1gc1nNzWnhoT5pQdmacjV+ehOOQ@mail.gmail.com> |
Yes, Robolectric stubs most of the Android APIs, so that you can execute
Android-dependent code on your computer. However, when I tried it a couple
of years ago, it was very difficult to get it to work. In fact, there's a
number of "setting up Robolectric" blog posts, which I take as an
indication that I was not alone in finding it difficult :)
At the time I figured that spending one day setting up Robolectric to work
correctly both with Gradle and with the IDE was too much, expecially when
it broke again two days later for reasons that were unclear to me. My
personal preference is to avoid complicated and brittle tooling: Humble
Dialog Box is a very simple and robust strategy, and it works well with the
kind of deadlines that most mobile developers have. I mean, to me TDD is a
time-saving strategy!
Matteo
On Thu, Jun 16, 2016 at 5:35 AM, 'James W Grenning' [email protected]
[extremeprogramming] <[email protected]> wrote:
> I've done a little in android. It has many of the same problems as
> embedded software, namely tight binding to the execution environment.
> That said, just like any other code that uses some framework.
>
> Like Mateo suggests, separate most your code and test drive it in an
> android free zone.
>
> There is a product called roboelectric. I've never used it, but it seems
> to be about testing code that uses android rather than code that is
> trying to have android free zones.
>
> --------------------------------------------------------------------------
> James Grenning - Author of TDD for Embedded C - wingman-sw.com/tddec
> wingman-sw.com
> wingman-sw.com/blog
> twitter.com/jwgrenning
> facebook.com/wingman.sw
> [](http://wingman-sw.com)
> On 14 Jun 2016, at 17:10, Phlip [email protected] [extremeprogramming]
> wrote:
>
> > Awesome what you find in the help-wanted ads.
> >
> > The platform is Android, so of course nobody can ask for "amazing TDD
> > skills." Or "amazing bug-prevention skills."
> >
> > Android is severely test-hostile amIrite?
> >
> > --
> > Phlip
> > http://zeroplayer.com/resume.html
>
>
> ------------------------------------
> Posted by: "James W Grenning" <[email protected]>
> ------------------------------------
>
> To Post a message, send it to: [email protected]
>
> To Unsubscribe, send a blank message to:
> [email protected]
>
> ad-free courtesy of objectmentor.com
> ------------------------------------
>
> Yahoo Groups Links
>
>
>
>