Skip to content

v0.0.0-alpha.20

Pre-release
Pre-release

Choose a tag to compare

@lrstanley lrstanley released this 02 Dec 22:58
v0.0.0-alpha.20
a6c82c1

Highlights

Assertions and CI reports in reel test

A tape can now check the screen as a test, not just wait on it. Assert fails the tape if a pattern doesn't show in time, AssertAbsent fails if it does, and either can check how the text is drawn:

Type "teashop --offline" Enter
Assert "Sencha"
AssertAbsent@2s /error|panic/
Assert "connection refused" Fg 1 Bold

reel test --summary "$GITHUB_STEP_SUMMARY" writes a Markdown report, and --junit FILE a JUnit one. reel check lints tapes without running them, and suggests a name when one is misspelled. See Testing with tapes.

Resizing mid-recording

The new Resize COLUMNS ROWS tape command resizes the terminal as dragging the window would. Recordings keep their starting size: a smaller terminal is drawn centered on it, and a larger one with smaller text so nothing is cut off.

Named looks

--look framed (or REEL_LOOK, or Set Look) adds a window bar, padding, a shadow, and a backdrop derived from the theme. bare shows just the terminal. Anything you set yourself still wins. See Appearance.

The same terminal on every host (breaking)

Programs run with reel.Exec now get TERM=xterm-256color and COLORTERM=truecolor everywhere, and with a nil cmd.Env they no longer see the host's terminal variables (NO_COLOR, FORCE_COLOR, COLUMNS, TERM_PROGRAM, TMUX, and others). A recording made on a laptop now matches one made in CI. If a program needs one of those variables, set it in cmd.Env, starting from reel.Environ(cmd.Dir).

Steadier typing and waits

Typing is paced by deadline, so long Type commands keep their speed on a busy host, and keys wait for a shell's line editor to be ready instead of echoing ahead of the prompt. Waits and assertions end as soon as the program exits, rather than running out their timeout. reel session start stops idle sessions after --timeout (30m by default).

Installing reel

  • brew install lrstanley/tap/reel (macOS and Linux, through Homebrew).
  • Prebuilt binaries for Linux, macOS, and Windows, on amd64 and arm64, are attached to the release.

Changelog

⚠️ Breaking Changes

  • 28861b8: reel: give programs the same terminal environment on every host (@lrstanley)
    • programs run with reel.Exec get TERM=xterm-256color even where xterm-ghostty's terminfo is installed, and with a nil cmd.Env no longer see the host's NO_COLOR, FORCE_COLOR, CLICOLOR, CLICOLOR_FORCE, COLUMNS, LINES, TERM_PROGRAM, TMUX, or other terminal variables. Set them in cmd.Env to keep them.

✨ New Features

🐞 Bug Fixes

🧹 Misc

3 changes

Full changelog: v0.0.0-alpha.19...v0.0.0-alpha.20

📦 Install

go get getsteep.dev/steep@v0.0.0-alpha.20
go install getsteep.dev/steep/cmd/reel@v0.0.0-alpha.20
go get getsteep.dev/steep/reel@v0.0.0-alpha.20
go get getsteep.dev/steep/reel/sink/native@v0.0.0-alpha.20

Docs:

💬 What to do next?