e2e

package
v1.0.0-rc.11 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package e2e runs the built ngchat binary in a pseudo-terminal against a fake site and chat server on loopback, and reads the screen back through a terminal emulator (ADR 0009).

It exists for the rows of docs/manual-test-plan.md that unit tests cannot reach because they stop at the Bubble Tea model: exit paths, the debug log on disk, reconnects over a real socket, and what a terminal is actually sent under NO_COLOR, TERM=dumb or a resize. It does not replace the hands-on pass for what only a real terminal can show (bell sound, glyph widths, link clicks).

The tests carry the e2e build tag so `go test ./...` stays fast:

go test -tags e2e ./e2e

They are hermetic like the rest of the suite: loopback only, the credential comes from NGCHAT_NG_COOKIE so no keyring is touched, and HOME, XDG_CONFIG_HOME and APPDATA point into a per-test directory. XDG_STATE_HOME is cleared, so the debug log lands under that HOME.

Jump to

Keyboard shortcuts

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