Skip to content

test: add unit and integration tests across all packages #3

@more-shubham

Description

@more-shubham

Currently go test ./... produces no output. This is the biggest gap for production credibility.

Scope:

  • internal/tracker/stats_test.go — atomic counter correctness under concurrency with -race flag
  • internal/processor/engine_test.goisSupportedFormat table-driven tests, file walking logic
  • internal/processor/worker_test.go — full JPEG/PNG → WebP pipeline using synthetic 1x1 pixel generated images (no committed test data)
  • internal/analytics/collector_test.goanalyzeMemoryStability, generateRecommendations, GC analysis with mock snapshots
  • tests/testutil/fixtures.go — shared test helpers using t.TempDir() for zero-cleanup fixture generation

Acceptance Criteria:

  • go test ./... passes
  • go test -race ./... passes with zero race conditions
  • No image files committed to repository
  • CI pipeline runs tests on every push

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions