원클릭으로
go-integration-testing
Tests de integración en Go. Usar al testear múltiples componentes juntos o validar flujos end-to-end.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Tests de integración en Go. Usar al testear múltiples componentes juntos o validar flujos end-to-end.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Guía para trabajar con StructureDefinitions y ElementDefinitions en FHIR. Usar cuando se necesite entender o manipular definiciones de estructura.
Diseño de arquitectura limpia y modular en Go. Usar al diseñar un nuevo módulo, definir capas y responsabilidades, u organizar código.
Benchmarks y profiling en Go. Usar al medir rendimiento, comparar implementaciones, o identificar bottlenecks.
Patrones de caching y pooling en Go. Usar al implementar caches, reducir allocations, o cachear resultados costosos.
Revisión de código Go. Usar al revisar PRs, verificar calidad de código, o identificar problemas potenciales.
Composición, embedding y extensibilidad en Go. Usar al extender tipos existentes o combinar comportamientos.
| name | go-integration-testing |
| description | Tests de integración en Go. Usar al testear múltiples componentes juntos o validar flujos end-to-end. |
| allowed-tools | Read, Grep, Glob, Bash(go test:*) |
Tests de integración en Go.
//go:build integration
package mypackage
func TestIntegration(t *testing.T) {
// Tests que requieren recursos externos
}
# Solo unit tests
go test ./...
# Incluyendo integration tests
go test -tags=integration ./...
func TestFullValidation(t *testing.T) {
if testing.Short() {
t.Skip("skipping integration test")
}
v, err := validator.NewInitializedValidatorR4(ctx, opts)
if err != nil {
t.Fatal(err)
}
patient := loadFixture(t, "valid_patient.json")
result, err := v.Validate(ctx, patient)
if !result.Valid {
t.Errorf("expected valid: %v", result.Errors)
}
}
testdata/
├── fixtures/
│ ├── valid_patient.json
│ └── invalid_patient.json
└── golden/
└── expected_output.txt
var update = flag.Bool("update", false, "update golden files")
func TestOutput(t *testing.T) {
result := generateOutput()
goldenPath := "testdata/golden/output.txt"
if *update {
os.WriteFile(goldenPath, []byte(result), 0644)
return
}
expected, _ := os.ReadFile(goldenPath)
if result != string(expected) {
t.Errorf("mismatch")
}
}