apuntes:testing
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
apuntes:testing [2025/03/24 00:35] – Santiago Faci | apuntes:testing [2025/03/30 19:55] (current) – Santiago Faci | ||
---|---|---|---|
Line 47: | Line 47: | ||
</ | </ | ||
- | ==== Capa service | + | ==== Capa controller |
<code javascript> | <code javascript> | ||
Line 129: | Line 129: | ||
===== Test de integración ===== | ===== Test de integración ===== | ||
- | | + | * Caso de uso: **Ok (200 OK)** |
<code javascript> | <code javascript> | ||
Line 166: | Line 166: | ||
</ | </ | ||
- | - Caso de uso: Registro (201 Created) | + | * Caso de uso: **Registro (201 Created)** |
<code javascript> | <code javascript> | ||
Line 194: | Line 194: | ||
</ | </ | ||
- | | + | * Caso de uso: **Validación (400 Bad Request)** |
<code javascript> | <code javascript> | ||
Line 214: | Line 214: | ||
}); | }); | ||
</ | </ | ||
+ | |||
+ | <code javascript> | ||
+ | . . . | ||
+ | " | ||
+ | " | ||
+ | . . . | ||
+ | . . . | ||
+ | </ | ||
+ | |||
+ | También podemos aprovechar para modificar el script '' | ||
+ | |||
+ | <code javascript> | ||
+ | . . . | ||
+ | " | ||
+ | . . . | ||
+ | " | ||
+ | . . . | ||
+ | . . . | ||
+ | </ | ||
+ | |||
+ | Asi, podremos lanzar todos los tests solo con '' | ||
===== Crear un entorno de pruebas con Docker ===== | ===== Crear un entorno de pruebas con Docker ===== |
apuntes/testing.1742776502.txt.gz · Last modified: 2025/03/24 00:35 by Santiago Faci