managarten/services/mana-core-auth/src
Wuesteon 304897261d test: implement comprehensive automated testing system with daily CI/CD
Implement rock-solid automated testing infrastructure for mana-core-auth
with daily execution, notifications, and comprehensive monitoring.

Test Suite Improvements:
- Fix all 36 failing BetterAuthService tests (missing service mocks)
- Add 21 JwtAuthGuard tests achieving 100% statement coverage
- Create silentError helper to suppress intentional error logs
- Fix Todo backend TaskService test structure
- Add jose mock for JWT testing
- Configure jest collectCoverageFrom for mana-core-auth

GitHub Actions Workflow:
- Daily automated test execution (2 AM UTC + manual trigger)
- Matrix parallelization across 6 backend services
- PostgreSQL and Redis service containers
- Coverage enforcement (80% threshold)
- Multi-channel notifications (Discord, Slack, GitHub Issues)
- Support for success notifications (opt-in)

Test Infrastructure:
- Coverage aggregation across multiple services
- Flaky test detection with 30-run history tracking
- Performance metrics tracking with regression detection
- Test data seeding and cleanup scripts
- Comprehensive test reporting with formatted metrics

Documentation:
- TESTING_GUIDE.md (4000+ words) - Complete testing documentation
- AUTOMATED_TESTING_SYSTEM.md - System architecture and workflows
- DISCORD_NOTIFICATIONS_SETUP.md - Discord webhook setup guide
- TESTING_DEPLOYMENT_CHECKLIST.md - Pre-deployment verification
- TESTING_QUICK_REFERENCE.md - Quick command reference

Final Result:
- 180/180 tests passing (100% pass rate)
- Zero console errors in test output
- Automated daily testing with rich notifications
- Production-ready test infrastructure
2025-12-25 19:12:27 +01:00
..
__tests__/utils test: implement comprehensive automated testing system with daily CI/CD 2025-12-25 19:12:27 +01:00
ai 🐛 fix(auth): remove type-only import of ConfigService in AiService 2025-12-04 19:08:37 +01:00
auth test: implement comprehensive automated testing system with daily CI/CD 2025-12-25 19:12:27 +01:00
common test: implement comprehensive automated testing system with daily CI/CD 2025-12-25 19:12:27 +01:00
config 🔒 security(auth): migrate to EdDSA JWT and add automated monitoring 2025-12-18 21:42:47 +01:00
credits Fix wrong type 2025-12-04 23:25:25 +01:00
db feat(auth): add error logs API and database schema 2025-12-19 02:17:55 +01:00
email feat(auth): add Brevo email integration for password reset and org invites 2025-12-16 03:33:15 +01:00
error-logs feat(auth): add error logs API and database schema 2025-12-19 02:17:55 +01:00
feedback Fix wrong type 2025-12-04 23:25:25 +01:00
health fix route 2025-12-05 00:50:23 +01:00
referrals feat(auth): add fraud detection, cron jobs, and admin endpoints to referral system 2025-12-07 16:09:39 +01:00
security 🔒 security(auth): migrate to EdDSA JWT and add automated monitoring 2025-12-18 21:42:47 +01:00
settings feat(settings): add device-specific settings storage 2025-12-11 23:49:18 +01:00
tags feat: major update with network graphs, themes, todo extensions, and more 2025-12-10 02:37:46 +01:00
app.module.ts feat(auth): add error logs API and database schema 2025-12-19 02:17:55 +01:00
main.ts 🔒 security(auth): migrate to EdDSA JWT and add automated monitoring 2025-12-18 21:42:47 +01:00