Skip to content

🔴 CRITICAL: Build comprehensive test suite #2

@GitAddRemote

Description

@GitAddRemote

Problem

Current test coverage is ~0% with only a smoke test. No unit tests, integration tests, or security tests exist.

Solution

Add Test Dependencies

testImplementation("org.testcontainers:testcontainers:1.19.0")
testImplementation("org.testcontainers:postgresql:1.19.0")
testImplementation("org.testcontainers:kafka:1.19.0")
testImplementation("com.redis.testcontainers:testcontainers-redis:2.0.1")
testImplementation("org.springframework.security:spring-security-test")

Target Coverage

  • Overall: 80%+
  • Services: 90%+
  • Controllers: 80%+

Acceptance Criteria

  • All test dependencies added
  • Unit tests for all services (JwtService, UserService, LoginRateLimiter)
  • Integration tests for all controllers
  • Repository tests with Testcontainers
  • Security tests for auth flow
  • Kafka integration tests
  • Test coverage report shows 80%+

Priority

🔴 Critical - Required for production confidence

Metadata

Metadata

Assignees

No one assigned

    Labels

    criticalCritical priority - must fix before productionproduction-blockerBlocks production deploymenttestingTesting and test coverage

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions