1.3 KiB
1.3 KiB
Include: run-tests
Ejecuta tests del proyecto Go con las tags apropiadas.
Comando
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:
- Ver detalles con
-v:
go test -v -tags goolm ./...
- Corregir errores en el código
- Re-ejecutar tests
- 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:
go test -v -tags goolm ./...
Muestra cada test individual y su resultado.
Coverage (opcional)
Para ver cobertura de tests:
go test -tags goolm -cover ./...