Integration tests don't check screenshots

Abierto
#2,918 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 5 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
csharp, unity
Área
testing

Línea de trabajo

Start with the integration tests for messages and exceptions and inspect how IntegrationTester handles quitting after capture. Check how app-runner uses sentry-api-client to fetch event attachments, since the issue says it lacks a function for reading them. Done when tests wait for screenshots where applicable and assert that screenshot.jpg is nonempty, skipping batch mode and WebGL.

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

Descripción

Tests Unity

The integration tests don't check screenshots. They fetch the event the test app printed and check its fields, but not its screenshot.jpg, so a broken or empty screenshot goes unnoticed. This let the Metal readback error fixed in #2917 pass CI: the iOS simulator and macOS runs logged it on every capture.

The screenshots are empty in CI on every platform anyway. The test app calls Application.Quit in the frame it captures in, so the end-of-frame screenshot never gets taken and the SDK sends a 0-byte screenshot.jpg ("Screenshot was not taken in time").

What we could do:

  • Let IntegrationTester wait for the screenshot before quitting in the message and exception tests.
  • Assert that the event's screenshot.jpg isn't empty, skipped where no screenshot is taken (batch mode, WebGL). Reading attachments needs a function in app-runner's sentry-api-client, which has none.
Lenguaje dominante
C#
Estrellas
295
Forks
63
Merge medio
4 d 10 h
PR fusionados (30 d)
29

Preparar el entorno

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 getsentry/sentry-unity

Todos los issues de getsentry/sentry-unity

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.