android / android/testing-samples

@RequiresDevice annotation not working

Offen
#123 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Java
Sterne
9.3k
Forks
3.6k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start with one of the example test projects and reproduce the issue using @RequiresDevice on a test running on an API 23 x86 emulator. Trace the annotation's test-device handling and verify that the annotated test no longer starts on the emulator while still running on a physical device.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
android, java
Bereich
mobile, testing
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.