Skip to content

Epic: Test architecture refactor before 1.0 #69

Description

@iriswolf

Summary

Refactor the test suite before the first stable release so tests describe TeleFlow contracts clearly and can support long-term API compatibility, coverage reporting, and quality gates.

This is a pre-1.0 stabilization task. It should be done while public contracts can still be clarified, renamed, or split without causing stable-version churn.

Current State

Target State

  • Tests are organized by public contract and runtime boundary, not by accidental historical growth.
  • Core framework contracts have focused executable specifications.
  • Transport, client, generated registration, analyzer, state/storage, callbacks, filters, middleware, and error handling each have clear test ownership.
  • Reflection and generated paths have parity tests where both paths support the same scenario.
  • Coverage reporting can be enabled without hiding weakly tested areas behind a single aggregate number.

Proposed Work

  • Define the target test taxonomy for the repository.
  • Split large test files into semantic areas without changing covered behavior.
  • Move shared test fixtures/builders into explicit test support locations.
  • Identify tests that currently assert implementation trivia and rewrite them around observable contracts.
  • Add missing contract tests discovered during the split.
  • Prepare the suite for Codecov or equivalent coverage publication.
  • Define coverage quality gates that are useful but not performative.

Boundaries

Acceptance Criteria

  • The repository has a documented test taxonomy before 1.0.0.
  • Large mixed test files are split or have an approved split plan.
  • Contract-critical areas have named test groups that are easy to find and review.
  • Reflection/generated parity expectations are represented by tests where relevant.
  • Coverage reporting can be introduced with meaningful area-level interpretation.
  • Epic: Coverage reporting and quality gates #18 and Split large architecture test files by semantic area #44 can be completed without guessing how the test suite should be organized.

Related Work

Metadata

Metadata

Assignees

Labels

area:ciCI, workflows, packaging, and release infrastructurearea:frameworkHandler framework, dispatcher, filters, callbacks, and contextsenhancementNew feature or requestpriority:p1High priority workstatus:needs-designNeeds API, architecture, or behavior design before implementation

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions