Commit graph

7 commits

Author SHA1 Message Date
senke
da80e4b05a [T0-006] test(backend): Ajout tests pour status_handler
- Tests complets pour status_handler.go (8 tests, 1 skip)
- Tests couvrent GetStatus et GetSystemInfo
- Gestion des cas de dégradation de services
- Couverture actuelle: 30.3% (objectif: 80%)

Files: veza-backend-api/internal/handlers/status_handler_test.go
       VEZA_ROADMAP.json
Hours: 16 estimated, 22 actual
2026-01-04 01:44:22 +01:00
senke
0dc595a23f [T0-006] test(backend): Ajout tests pour social.go
- Tests complets pour social.go (18 tests)
- Handler utilise déjà l'interface social.SocialService
- Tests couvrent CreatePost, ToggleLike, AddComment, GetFeed avec validation
- Couverture actuelle: 30.7% (objectif: 80%)

Files: veza-backend-api/internal/handlers/social.go
       veza-backend-api/internal/handlers/social_test.go
       VEZA_ROADMAP.json
Hours: 16 estimated, 21 actual
2026-01-04 01:44:22 +01:00
senke
6632b076ca [T0-006] test(backend): Ajout tests pour settings_handler
- Tests complets pour settings_handler.go (11 tests)
- Interface UserServiceInterfaceForSettings créée pour permettre le mock
- Tests couvrent GetSettings et UpdateSettings avec validation des préférences
- Couverture actuelle: 30.3% (objectif: 80%)

Files: veza-backend-api/internal/handlers/settings_handler.go
       veza-backend-api/internal/handlers/settings_handler_test.go
       VEZA_ROADMAP.json
Hours: 16 estimated, 20 actual
2026-01-04 01:44:22 +01:00
senke
af134bb6a5 [T0-006] test(backend): Ajout tests pour avatar_handler et notification_handlers
- Tests complets pour avatar_handler.go (15 tests)
- Tests complets pour notification_handlers.go (14 tests)
- Interfaces créées pour permettre le mock (ImageServiceInterface, UserServiceInterfaceForAvatar, NotificationServiceInterface)
- Couverture actuelle: 30.3% (objectif: 80%)

Files: veza-backend-api/internal/handlers/avatar_handler.go
       veza-backend-api/internal/handlers/avatar_handler_test.go
       veza-backend-api/internal/handlers/notification_handlers.go
       veza-backend-api/internal/handlers/notification_handlers_test.go
       VEZA_ROADMAP.json
Hours: 16 estimated, 18 actual
2026-01-04 01:44:22 +01:00
senke
049fdac9e8 [T0-006] test(backend): Mise à jour couverture tests - 31.1%
- Couverture actuelle: 31.1% (amélioration de 0.9%)
- 143 tests créés au total, tous passent
- Tests créés pour 7 services et 2 handlers
- Progression vers objectif 80%

Files:
- VEZA_ROADMAP.json (mis à jour)

Hours: 16 estimated, 13 actual (travail en cours)
2026-01-04 01:44:21 +01:00
senke
ccdc5f7281 [T0-006] test(backend): Ajout tests service notification - Progression couverture
- Tests complets pour notification_service (15 tests, tous passent)
- Tests couvrent CreateNotification, GetNotifications, MarkAsRead, MarkAllAsRead, GetUnreadCount
- Tests utilisent SQLite en mémoire
- Couverture actuelle: 30.7% (objectif: 80%)

Files:
- veza-backend-api/internal/services/notification_service_test.go (créé)
- VEZA_ROADMAP.json (mis à jour)

Hours: 16 estimated, 9 actual (travail en cours)
2026-01-04 01:44:21 +01:00
senke
9e16672953 [T0-006] test(backend): Amélioration couverture tests Go - Scripts et tests RBAC
- Scripts créés pour exécuter tests par groupes/packages (évite crashes RAM)
- Tests complets pour handlers RBAC (16 tests, tous passent)
- Interface RBACServiceInterface créée pour permettre mock dans tests
- Couverture actuelle: 29.8% (objectif: 80%)

Files:
- veza-backend-api/scripts/test_coverage_by_groups.sh (créé)
- veza-backend-api/scripts/test_coverage_one_by_one.sh (créé)
- veza-backend-api/internal/api/handlers/rbac_handlers.go (modifié)
- veza-backend-api/internal/api/handlers/rbac_handlers_test.go (créé)
- VEZA_ROADMAP.json (mis à jour)

Hours: 16 estimated, 4 actual (travail en cours)
2026-01-04 01:44:21 +01:00