Skip to content

Add a real-server integration test lane and a coverage gate #87

Description

@morcen

Problem

Every test, including the "integration" suite, fakes the HTTP layer. Http::fake bypasses Guzzle's URI resolution, redirects, timeouts, and streaming, which is exactly where the riskiest audit findings live. Bugs of this class are invisible to the current suite. Coverage reporting is configured in phpunit.xml.dist but CI runs with coverage: none, so there is no coverage signal or gate.

Location

  • tests/Feature/PassageIntegrationTest.php (8 Http::fake calls)
  • CI workflows

Fix

Add a small real-server test lane (PHP built-in server or WireMock container) covering body types, header forwarding, query forwarding, streaming, and the allowed-hosts guard. Enable a coverage job with a modest floor (start at 80%).

Sizing

Priority 18 (Impact 3, Risk 3, Effort 3). Estimated 1-2 days.

From the tech debt audit dated 2026-07-05.

Metadata

Metadata

Assignees

No one assigned

    Labels

    tech-debtFrom the technical debt registertestsTest suite improvements

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions