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!
This blog was born as a means of annotating big and small discoveries in my use of Java, Ubuntu/Linux and Android that would be easy to access from anywhere, anytime. It does beat post-it's big time, and it also adds the benefit that others might, eventually, contribute with intelligent insights.
Monday, January 17, 2011
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 codetrips.com: please read the rest of this post here.
This blog has now been moved to codetrips.com: please read the rest of this post here.
Subscribe to:
Posts (Atom)