Skip to content

Test Coverage #14

@MaximumTrainer

Description

@MaximumTrainer

Gap

Only four backend test files exist:

  • OpenDataMaskApplicationTests.kt (context load test)
  • AuthControllerTest.kt
  • AuthServiceTest.kt
  • WorkspaceServiceTest.kt

Missing test coverage:

  • Connector tests (PostgreSQLConnector, MongoDBConnector, AzureSQLConnector, MongoDBCosmosConnector).
  • DataConnectionService and DataConnectionController tests.
  • TableConfigurationService and TableConfigurationController tests.
  • JobService and JobController tests.
  • EncryptionService tests.
  • JwtTokenProvider and JwtAuthenticationFilter tests.
  • Frontend: no test files found despite Vitest being configured.
  • CLI: no Go test files found.

Affected files:

  • backend/src/test/
  • frontend/ (test files)
  • cli/ (test files)

Required Work

  • Add unit tests for all services and controllers (target ≥ 80% line coverage).
  • Add connector integration tests (use Testcontainers or mocks).
  • Add frontend component and API tests using Vitest.
  • Add Go CLI tests using testing package.
  • Set up CI pipeline for automated test execution.

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions