Documentation
¶
Overview ¶
Package testutil provides shared test helpers for saving per-test artifacts to persistent output directories for later LLM review.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArtifactDir ¶
ArtifactDir returns a persistent directory for saving test artifacts:
test/testdata/<run-timestamp>/<TestName>/
The directory is created automatically. Files written here survive after the test finishes, so they can be reviewed by humans or LLMs. rootDir should be the path to the repo root (e.g. "../.." from internal/scaffold).
func RunTimestamp ¶
func RunTimestamp() string
RunTimestamp returns a stable timestamp for the current test run. All tests in the same `go test` invocation share the same timestamp.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.