Skip to content

test: strengthen language-only dispatch coverage — inside-module variant and e2e PATH-discovery test #382

Backlog

Description

@jflowers

Finding (LOW — test-coverage, from the review council on PR #379):

TestReportWithLanguageOnly_TriggersExternalPath (cmd/gaze/external_analyzer_test.go:814) proves the widened --language-only gates in gaze report only through their failure leg (undiscoverable-language sentinel outside any Go module). Two related scenarios lack direct execution:

  1. Inside-module language-only variant — the delta spec's "Language-only inside a Go module" requirement (openspec/changes/report-language-dispatch, Requirement 1, Scenario 2) is covered only transitively; no test runs the language-only path with a Go module present. Suggested strengthening: write a go.mod into t.TempDir() and reuse the same sentinel and assertions.
  2. E2E language-only success test — the success composition the /gaze agent invokes (language-only → tier-3 PATH discovery → external report) has no end-to-end test. PATH discovery is unit-tested in internal/adapter/discovery_test.go; external report success is tested only with an explicit --analyzer fake binary path. Suggested strengthening: place a fake gaze-analyzer-<lang> on a prepended PATH, reusing the internal/adapter/discovery_test.go harness.

The dispatch contract itself is protected — reverting either widened gate in cmd/gaze/main.go fails the existing test's paired assertions — so the gap is inherited shape, not a regression introduced by PR #379 (whose Known Issues section already acknowledges both sub-gaps).

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

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions