Back to articles
Your Test Coverage Is Lying to You

Your Test Coverage Is Lying to You

via Dev.toAlejandro Sosa

$ testreg trace auth.login Feature: User Login ( auth.login ) Priority: critical route:/login apps/web/src/router.tsx:142 └─ LoginPage apps/web/src/pages/auth/LoginPage.tsx:13 └─ useAuth apps/web/src/hooks/useAuth.ts:19 └─ authApi.login apps/web/src/services/api/auth.ts:46 └─ POST /api/v1/auth/login src/infrastructure/http/handlers/auth_handler.go:576 └─ AuthHandler.Login src/infrastructure/http/handlers/auth_handler.go:249 └─ authService.Login src/application/services/auth_service.go:172 ├─ JWTGenerator.GenerateTokenPair src/infrastructure/auth/jwt_generator.go:70 │ ├─ JWTGenerator.GenerateAccessToken src/infrastructure/auth/jwt_generator.go:97 │ └─ JWTGenerator.GenerateRefreshToken src/infrastructure/auth/jwt_generator.go:123 ├─ authRepository.StoreRefreshToken src/domain/repositories/auth_repository.go:329 ├─ repositories.HashToken src/domain/repositories/auth_repository.go:90 └─ sql:GetUserByEmail src/domain/repositories/queries/user.sql:21 That's one command. It traces every funct

Continue reading on Dev.to

Opens in a new tab

Read Full Article
4 views

Related Articles