Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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? :)

like image 772
user359519 Avatar asked Sep 10 '25 19:09

user359519


1 Answers

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

like image 125
Francesco Laurita Avatar answered Sep 13 '25 10:09

Francesco Laurita