Confusing when a got-away-with-it multiple snapshot stops getting away with it
- Lenguaje dominante
- Kotlin
- Estrellas
- 101
- Forks
- 18
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Story:
- a user has a test where they are taking multiple snapshots that have the same name
- such as calling `toMatchDisk()` twice in one test
- the snapshots happen to be the same, so they get away with it
- something about the code being tested changes, and now the snapshots are different, so the test fails with this error message
- https://github.com/diffplug/selfie/blob/edb5f659760d5a0760810f5bedd89c44fa6a5b0f/jvm/selfie-lib/src/commonMain/kotlin/com/diffplug/selfie/guts/WriteTracker.kt#L70-L94
- [ ] The `hotToFix` is completely buried. It should come first!
- [ ] We should also advertise the `allow_multiple_equivalent_writes_to_one_location` property
Guía de contribución
Línea de trabajo
Empieza en jvm/selfie-lib/src/commonMain/kotlin/com/diffplug/selfie/guts/WriteTracker.kt alrededor de las líneas 70-94, donde se construye el error reportado. Comprueba cómo se representan allí hotToFix y allow_multiple_equivalent_writes_to_one_location; se considera terminado cuando el error presenta hotToFix primero e indica la propiedad.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- kotlin
- Área
- testing
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Estado de actividad
- Estancado
- Claridad
- Bien especificado
- Aptitud para principiantes
- 35/100