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!

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: