The other aspect of agile is that you go through an evaluation process of your workflow and development tool chain. As we all know the docs on the android emulator are oblique in some areas.

To properly use BDD instrumented testing we have to improve the speed of the emulator. This is specific to those of us who have older PCs, if you have a brand new PC and can get set in your BIOS(assuming you do not run windows) the KVM speedups than you can get the latest android-x86 images and load that in VitualBox as your emulator. For the rest of us its these things:

1. AVD Device Ram size 768MB

2. AVD Cache Partion Size 556MB

3   LCD set to 240

4. Check use snapshot

Now, when you launch an emulator that launcher configuration is stored as the default for next time that you launch that AVD. For phones set the scale to between .54 and .84. Obviously, you can probably leave tablets set at say .54. And of course you also want to turn off the boot animation so in your IDE assuming that it has startup options box you wil enter:

-no-boot-anim -scale .64

Now, that does not take care of all the speed problems as we have a single-threaded qemu emulating arm stuff and openGL, etc but it helps quite a  bit to get it to a more tolerable level when completing instrumented testing.

Advertisements