Files
repo_Claude/.claude/includes/run-tests.md
T

66 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Include: run-tests
Ejecuta tests del proyecto Go con las tags apropiadas.
## Comando
```bash
go test -tags goolm ./...
```
## Casos
### Tests pasan (exit code 0)
```
ok gitea-dgg044oo04woo4ggcsws4gk0.organic-machine.com/Bl4cksmith/dataforge/core 0.123s
ok gitea-dgg044oo04woo4ggcsws4gk0.organic-machine.com/Bl4cksmith/dataforge/shell 0.089s
```
✓ Tests pasando, continuar
### Tests fallan (exit code != 0)
```
FAIL gitea-dgg044oo04woo4ggcsws4gk0.organic-machine.com/Bl4cksmith/dataforge/core 0.456s
```
✗ Error: Tests fallando
**STOP**: No continuar hasta que los tests pasen.
**Solución:**
1. Ver detalles con `-v`:
```bash
go test -v -tags goolm ./...
```
2. Corregir errores en el código
3. Re-ejecutar tests
4. Continuar cuando todos pasen
### No hay tests (no packages)
```
? gitea-dgg044oo04woo4ggcsws4gk0.organic-machine.com/Bl4cksmith/dataforge/core [no test files]
```
No hay tests aplicables (común en cambios de docs/config solamente)
✓ Continuar sin ejecutar tests
## Modo verbose (para debugging)
Si se necesita más información:
```bash
go test -v -tags goolm ./...
```
Muestra cada test individual y su resultado.
## Coverage (opcional)
Para ver cobertura de tests:
```bash
go test -tags goolm -cover ./...
```