Yes, exactly!

On Tue, Jan 18, 2011 at 8:06 PM, A. Elk <lancaster.dambust...@gmail.com>wrote:

> I assume you mean this part of the documentation of
> InstrumentationTestRunner:
>
> Filter test run to tests with given annotation: adb shell am
> instrument -w -e annotation com.android.foo.MyAnnotation
> com.android.foo/android.test.InstrumentationTestRunner
>
> If used with other options, the resulting test run will contain the
> union of the two options. e.g. "-e size large -e annotation
> com.android.foo.MyAnnotation" will run only tests with both the
> LargeTest and "com.android.foo.MyAnnotation" annotations.
>
> Filter test run to tests without given annotation: adb shell am
> instrument -w -e notAnnotation com.android.foo.MyAnnotation
> com.android.foo/android.test.InstrumentationTestRunner
>
> ?
>
> On Jan 16, 10:47 pm, Aman Bhardwaj <aman.bhard...@gmail.com> wrote:
> > Cool, thanks for the confirmation.
> > In that case I will write and derive derive my runner from
> > InstrumentationTestRunner.
> > Also Google's documentation is wrong in this case.
> >
> > On Sat, Jan 15, 2011 at 6:58 PM, A. Elk <lancaster.dambust...@gmail.com
> >wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Exactly. The annotations in InstrumentationTestRunner come from
> > > android.test.suitebuilder.annotation. My understanding is that, while
> > > they're public, they're not supported.
> >
> > > As a note, InstrumentationTestRunner and the Android unit/functional
> > > test framework are based on JUnit 3, not JUnit 4.
> >
> > > On Jan 14, 3:09 pm, Diego Torres Milano <dtmil...@gmail.com> wrote:
> > > > If you want to provide a different behavior for the test runner just
> > > > create your own extending it:
> >
> > > > public class MyTestRunner extends
> > > > android.test.InstrumentationTestRunner {
> > > >   // do wathever you want
> >
> > > > }
> >
> > > > To do whatever you want, use android.test.InstrumentationTestRunner
> > > > source as a an inspiration.
> >
> > > > On Jan 13, 1:47 am, Aman Bhardwaj <myama...@gmail.com> wrote:
> >
> > > > > Hi,
> > > > > I have some test cases with my own defined Annotations, but
> > > > > InstrumenationTestRunner doesn't runs tests based on annotation.
> > > > > However it works if I add annotations
> > > > > from android.test.suitebuilder.annotation.
> >
> > > > > Is it only supposed to work with annotations
> > > > > in android.test.suitebuilder.annotation.Smoke?
> > > > > Any suggestions how to make it work with my own annotations.
> >
> > > > > Thanks,
> > > > > ~Aman
> >
> > > > --
> > > > Have you read my blog ?http://dtmilano.blogspot.com
> > > > android junit tests ui linux cult thin clients
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com><android-developers%2Bunsubs
> cr...@googlegroups.com>
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to