mercredi 21 décembre 2016

Android Instrumentation Test Runner: How to filter multiple test annotations

The documentation for instrument is clear on how to filter a single test annotation from a test run:

Filter test run to tests without given annotation: adb shell am instrument -w -e notAnnotation com.android.foo.MyAnnotation http://ift.tt/1hvrkwP

(from http://ift.tt/2hU9mM9)

Is it possible to filter multiple annotations? I have not found a syntax that works thus far. I have tried:

  • adb shell am instrument -w -e notAnnotation com.android.foo.MyAnnotation -e notAnnotation com.android.foo.AnotherAnnotation http://ift.tt/1hvrkwP
  • adb shell am instrument -w -e notAnnotation com.android.foo.MyAnnotation,com.android.foo.AnotherAnnotation http://ift.tt/1hvrkwP
  • adb shell am instrument -w -e notAnnotation com.android.foo.MyAnnotation com.android.foo.AnotherAnnotation http://ift.tt/1hvrkwP
  • adb shell am instrument -w -e notAnnotation com.android.foo.MyAnnotation,com.android.foo.AnotherAnnotation http://ift.tt/1hvrkwP
  • adb shell am instrument -w -e notAnnotation "com.android.foo.MyAnnotation","com.android.foo.AnotherAnnotation" http://ift.tt/1hvrkwP

and probably others that I've forgotten, thus far to no avail.

Anyone know how to do this?

Aucun commentaire:

Enregistrer un commentaire