Skip to content

test: parametrise and consolidate backend-specific tests #730

Open

Description

@planetf1

Context

Part of the Testing Infrastructure & Strategy Overhaul epic (item 2b). Depends on the shift-left work (#729) and marker audit (#728).

Objective

Where duplicate test logic exists across backends (HF, vLLM, Ollama, etc.), consolidate into parametrised test suites. This improves consistency, reduces maintenance, and makes it easier to add new backends.

Work

  • Identify test files with duplicate logic across backends
  • Consolidate into parametrised suites using @pytest.mark.parametrize over backends
  • Stretch: design a single parametrised backend contract test suite that runs against each available backend to catch interface inconsistencies
  • Ensure parametrised tests respect backend markers so they skip correctly when a backend is unavailable
  • Update contributor documentation on the parametrised pattern

Notes

  • This covers both test/ and example scripts
  • Depends on understanding from 2a (shift-left) and 1b (marker audit) — those reveal which tests have backend-specific duplicates
  • The contract test suite (stretch goal) would validate that all backends implement the same interface consistently

Activity

  1. added
    area/backends
    on May 20, 2026
  2. added
    p2
    on Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/backendsp2testing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions