Testler¶
Yerel geliştirme döngüsü notları. Dağıtım kanıt sınıflandırması için Test bölümüne bakın:
- Test genel bakış
- Test stratejisi
- Test matrisi
- Canlı E2E
- Sürüm kabul kontrol listesi
- Windows Service E2E
- Linux systemd E2E
- Docker E2E
- Bilinen test edilmemiş senaryolar
Temel komutlar¶
text
go fmt ./...
go vet ./...
go test ./... -count=1
go build ./cmd/iqv-integration-api
İsteğe bağlı / ortama bağlı:
text
go test -race ./... # cgo yoksa SKIPPED
MONGODB_INTEGRATION_TEST_URI=... go test ./internal/... -count=1 # CONDITIONAL entegrasyon
Kurallar:
- Smoke-only yerine gerçek assertion tercih edin.
- MongoDB health unit testlerinde interface fake kullanın.
- Production kodunda test edilen fonksiyonu no-op başarıya mocklamayın.
- Testleri production sistemlere bağlamayın.
- Unit AUTOMATED PASS, canlı deployment PASS demek değildir.