Issue
According to official documentation function MonkeyDevice.instrument(className, args) is perfectly suitable for this task.
As I understand this should be done like this:
device.instrument('my.package.name/android.test.InstrumentationTestRunner', {'class':'my.package.name.SingleTest'})
However it still launches all test-cases. Is it bug or my mistake?
Solution
It's a chimpchat bug. I've just uploaded a path that fixes the problem. Once applied, you will be able to run all the tests in a class by using the same syntax you are using.
If you want to give it a try before the patch is merged you can
- download android source
- cherry pick patch 37560
- set the environment (build/envsetup.sh)
- lunch
- make chimpchat
- make monkeyrunner
Answered By - Diego Torres Milano
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.