testing-samples icon indicating copy to clipboard operation
testing-samples copied to clipboard

@RequiresDevice annotation not working

Open KrawczykPawel opened this issue 9 years ago • 1 comments

Steps to reproduce:

  1. Download one of the example test projects
  2. Add @RequiresDevice over some test.
  3. Run tests on emulator (API 23 x86)

Expected result: Test with @RequiresDevice should NOT start on the emulator Actual result: Test with @RequiresDevice starts on the emulator

KrawczykPawel avatar Dec 19 '16 13:12 KrawczykPawel

This is tracked in bug: https://code.google.com/p/android/issues/detail?id=225086 . We'll have a fix in the next release.

On Mon, 19 Dec 2016 at 05:03 KrawczykPawel [email protected] wrote:

Steps to reproduce:

  1. Download one of the example test projects
  2. Add @RequiresDevice over some test.
  3. Run tests on emulator (API 23 x86)

Expected result: Test with @RequiresDevice should NOT start on the emulator Actual result: Test with @RequiresDevice starts on the emulator

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/googlesamples/android-testing/issues/123, or mute the thread https://github.com/notifications/unsubscribe-auth/AM7lSScYsmOca-dspgKVaooF5R9ScvqSks5rJoCigaJpZM4LQs_g .

-- Stephan Linzner | Software Engineer in Tools and Infrastructure | [email protected] http://google.com/ | Google Inc.

slinzner-corp avatar Dec 19 '16 17:12 slinzner-corp