Karumi / Dexter

Android library that simplifies the process of requesting permissions at runtime.
http://karumi.com
Apache License 2.0
5.23k stars 670 forks source link

Create a monkey runner test to see that the application doesn't crash randomly #110

Open Serchinastico opened 7 years ago

Serchinastico commented 7 years ago

In the latest versions of Dexter we had some crashes caused by NPEs. We have to evaluate the cost of creating a monkey runner test that runs the sample app and do some interactions at random to discover automatically those issues.

ivannarino commented 7 years ago

I think the monkey command tool could do the job

adb shell monkey -p com.karumi.dexter.sample --ignore-crashes --kill-process-after-error --ignore-timeouts --ignore-security-exceptions --pct-nav 70 --pct-majornav 15 --pct-touch 5 --pct-trackball 5 --pct-motion 5 -s 1000 10000