Skip to content

[typescript] Add integration tests for storage providers #13

Description

@bigboateng

Problem

Our storage layer implementations (LocalStorage, S3Storage, GCSStorage, RedisStorage) lack integration tests, making code changes risky and requiring extensive manual verification.

Proposed Solution

Create automated integration tests for all storage providers:

  • Tests that verify actual storage operations against real/emulated backends
  • GitHub Actions workflow to run tests automatically on PRs
  • Support for testing with local emulators when cloud credentials are unavailable

Implementation Plan

  1. Setup integration test infrastructure
  2. Add tests for LocalStorage operations
  3. Add tests for S3Storage with localstack or similar
  4. Add tests for GCSStorage with GCP emulator
  5. Add tests for RedisStorage with local Redis instance
  6. Configure GitHub Actions to run all tests
  7. Add conditional cloud tests for PRs with credentials

Success Metrics

  • Integration tests passing for all storage providers
  • CI verifying compatibility on each storage-related PR
  • Reduced time spent on manual testing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions