You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: strengthen language-only dispatch coverage — inside-module variant and e2e PATH-discovery test #382
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:
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.
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).
Activity