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

Abierto
#2,147 1 comentario 1 reacción 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
20/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
java
Área
testing

Línea de trabajo

Comienza revisando el sistema Idling de Espresso y el comportamiento de sincronización descrito en este issue. Define cómo debe esperar la test API a una View o un Fragment, incluidas las condiciones de timeout y de fallo; el trabajo estará terminado cuando exista un diseño consensuado y la cobertura correspondiente para la aparición asíncrona de la UI.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Java
Estrellas
1.2k
Forks
342
Merge medio
1 d 14 h
PR fusionados (30 d)
5

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de android/android-test

Todos los issues de android/android-test

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.