android / android/android-test

Synchronization capabilities: allow to wait for a View or Fragment to exist

Aperta
#2,147 1 commento 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
Java
Stelle
1.2k
Fork
342
Merge medio
11h 29m
PR unite (30g)
2

Descrizione

Espresso should allow to wait for a View or Fragment to appear (with a timeout).

The "Idling system" makes a lot of assumptions about the implementation details of the app, and makes difficult to test the **UI** of an asynchronous app without having to instrument async operations in the app, which is simply not realistic for modern apps where everything is async (or should be anyway). This makes the success of the test depend on instrumentation code spread around the codebase instead of just the actual behaviour of the app and the code of the test itself.

In general, testing the UI should not _require_ knowledge about the implementation details of the backend.

It would help if the test API allowed to wait for a View or Fragment to appear, with a timeout or other failure conditions.

Many thanks

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia esaminando il sistema Idling di Espresso e il comportamento di sincronizzazione descritto in questa issue. Definisci come la test API debba attendere una View o un Fragment, comprese le condizioni di timeout e di errore; il lavoro è completato quando sono disponibili un design definito e la relativa copertura per la comparsa asincrona della UI.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java
Ambito
testing
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
20/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.