Monday, January 17, 2011

Run Android tests in a connected device

Not quite sure as to why it never occurred to me, but it is totally possible and legal to run unit tests inside a real device, connected to your dev box via a USB cable.

An obvious advantage is that you are now running your tests in a more "realistic" environment; there are no drawbacks that I can think of (unless your device has some weird 'lockdown' imposed by the manufacturer / cell provider); and... that's when you realize just how much faster than an emulator that is.

So here's the day's top-tip: if you are in a hurry, and have a lot of unit test you want to run, get that USB cable out!

Saturday, January 15, 2011

Using the same model classes in Android, GWT and JPA (Part II)

In a recent post, I've demonstrated how one can use the same domain-specific (Model) classes end-to-end, from the Mobile layer, to the GWT Front-End, up to server-side and Persistence layer (JPA).

This blog has now been moved to please read the rest of this post here.