Skip to content

Add fixture-based regression coverage for capture and ranking #5

@bdtran2002

Description

@bdtran2002

Summary

Add repeatable automated coverage for the frontend-only comparison pipeline so ranking, normalization, and filtering regressions are caught before they ship.

Why

Recent fixes around condition bucketing and cross-country location matching showed that key comparison logic can regress silently without fixtures.

Scope

  • choose a lightweight test approach suitable for this repo
  • add deterministic fixtures for Facebook listing inputs and eBay result inputs
  • cover normalizeLocationText, query building, match confidence, ranking, and filter behavior
  • add regression cases for placeholder prices, renewed vs new, auction-only handling, and cross-country location matches
  • document how to run the tests locally

Acceptance criteria

  • repeatable test fixtures live in the repo
  • core comparison helpers have regression coverage
  • at least one documented command exists for running the checks locally

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions