-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Overview
Achieve comprehensive test coverage (>70%) and establish automated testing infrastructure for the config-server.
Goals
- Establish automated testing infrastructure
- Achieve >70% code coverage
- Set up CI/CD pipeline for automated testing
- Ensure code quality through linting
Tasks
1. Testing Infrastructure
- Set up testcontainers for PostgreSQL
- Configure test database with migrations
- Set up code coverage reporting
- Configure golangci-lint
- Set up GitHub Actions for automated testing
2. Unit Tests
- Domain models unit tests
- Service layer unit tests
- Error handling unit tests
- Validation logic tests
- Business logic tests
3. Integration Tests
- Repository layer integration tests (with real DB)
- API integration tests (end-to-end)
- Bootstrap token flow tests
- Service Discovery tests
- Health check tests
4. Code Quality
- Run golangci-lint and fix issues
- Fix code smells and duplications
- Optimize slow tests
- Document test utilities
Deliverables
- >70% code coverage
- Automated test suite in CI
- Integration test suite with testcontainers
- Clean code passing all linters
- Test documentation
Success Criteria
- All tests passing in CI
- Coverage report accessible
- Fast test execution (<5 min total)
- Zero critical linting issues
Notes
- Focus on service and repository layers first
- Use table-driven tests for domain logic
- Mock external dependencies where appropriate
Metadata
Metadata
Assignees
Labels
No labels