Skip to content

305 lines of provider test fixtures that nothing executes, and a plan that says they shipped #706

Open

Description

@David-Noble-at-work

Related: #635 (per-method test coverage)

15 providers carry a testdata/integration.star. Nothing executes any of them.

Providers with testdata/integration.star 15
integration_test.go files that exist 1 (flow)
Provider packages that read their own testdata 0
Orphaned fixture lines 305

Even flow/integration_test.go does not load its fixture. No literal reference to the filename exists in
any Go file, and no glob or directory walk discovers them — devlore-test loads fixtures by explicit name
from its own testdata, not from provider packages.

Where they came from

docs/plans/add-test-coverage.md paired an integration_test.go with a testdata/integration.star for
each provider. The fixtures were written. The Go side that would run them never landed.

That plan's checkboxes overstate what shipped. Line 53 marks platform complete —
"integration_test.go + testdata/integration.star" — and pkg/op/provider/platform/integration_test.go
does not exist. Anyone starting from that document starts from a false premise about what is covered.

Why it matters beyond the dead weight

Code nothing runs, drifts. pkg/op/provider/ui/testdata/integration.star calls ui.success(...); the
method is Succeed. That fixture would raise a NameError on its first execution, and its header claims to
exercise "all five messaging methods" when there are six. Those errors survived because no test has ever
loaded the file.

There is no reason to think the other 14 are cleaner — they have had exactly the same amount of
verification, which is none.

Proposal

  1. Delete all 15 fixtures. They are unreachable, unverified, and the wrong shape for Per-method test coverage: a unit test and a functional test for every provider method #635, which calls
    for per-method coverage rather than per-provider smoke scripts.
  2. Correct add-test-coverage.md so its status reflects the tree, or retire it if Per-method test coverage: a unit test and a functional test for every provider method #635 supersedes it.
    A plan claiming coverage that does not exist is worse than no plan.
  3. Let Per-method test coverage: a unit test and a functional test for every provider method #635 build the real thing from a known-empty starting point.

ui's copy is being deleted under #700, which sweeps that directory's call sites anyway. This issue covers
the remaining 14.

Evidence of completion

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions