My latest Android project is close to dev complete for its first version, and now I'm starting to get into the bug hunting stage. It’s about time I start jumping into unit testing. In my search for better test tools, I ran across the Exerciser Monkey, a nice script in the Android SDK that basically beats on your application until it finds a problem.
Not everyone can afford their own testers to beat on your application and make sure it stands up to the punishment. The Exerciser Monkey provides just that to all Android Developers. All you need to do it set up your application on an emulator (or a device connected to your ADB) and let him go!
Using the command "adb shell monkey -p your.package.name -v 5000" causing the program to send 5000 pseudo-random events to your application. If any of these events causes a crash, the program stops and spits out the exception. By just using the above command, you can have a monkey beating on your app for hours..
Sadly it’s not substitute for unit tests as it can only really test force closes or large delays in your app, but it does provide some testing abilities that are quick and easy to use, and will likely find some bugs for you.