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!

No comments:

Post a Comment