Search code examples
androidunit-testingtestingmonkeyandroid-monkey

Android Test Monkey - Set Verbosity?


How can I change the verbosity level when running Test Monkey from the command line?

These two commands work:

adb shell monkey -p com.my.package 5000
adb shell monkey -p com.my.package -v 5000

The Developer docs say, "Each -v on the command line will increment the verbosity level. Level 0 (the default) provides little information beyond startup notification, test completion, and final results. Level 1 provides more details about the test as it runs, such as individual events being sent to your activities. Level 2 provides more detailed setup information such as activities selected or not selected for testing."

However, when I try adb shell monkey -p com.my.package -v -v 5000 I get a segmentation fault monkey -p com.my....

I tried adb shell monkey -p com.my.package -v 2 5000, but monkey reads 2 as the count, rather than the value for -v.

Help? :)


Solution

  • It should be: adb shell monkey -p com.my.package -vvv 5000