testenv

package
v0.4.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package testenv keeps test runs away from the developer's real host CLIs.

Index

Constants

This section is empty.

Variables

View Source
var HostCLIs = []string{"claude", "codex"}

HostCLIs are the host programs setup and doctor execute.

Functions

func Run

func Run(m *testing.M) int

Run runs the tests with HostCLIs removed from PATH and everything else on it still reachable.

Doctor runs `claude mcp list`, and Claude Code health-checks every server it knows by starting it — the developer's real Logos plugin included — with the test's environment, so a test's LOGOS_VAULT=<temp>/not-a-vault made the plugin fail to start. Claude Code caches that failure and skips Logos in every new session for 15 minutes: 592 of 638 recorded plugin failures on one machine came from `go test ./cmd/...`. Dropping the whole directory from PATH would take git and go with it, so each directory holding one of them is replaced by a copy made of links to everything else in it.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL