sift

command module
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2025 License: MIT Imports: 5 Imported by: 0

README

sift

A lightweight terminal UI for displaying Go tests.

Screenshot of the Sift UI

Sift solves the problem of verbose Go test logs by allowing you to show/hide the logs at an individual tests level.

Installation

go install github.com/timtatt/sift@v0.4.0

Usage

sift works by consuming the verbose json output from the go test command. The easiest way to use it is to pipe | the output straight into sift

go test {your-go-package} -v -json | sift

# eg. 
go test ./... -v -json | sift
Keymaps

To see the available keymaps, press ?. The keymaps are based on vim motion standard keymaps for scrolling and managing folds

Press / to search and filter tests:

  • Type to filter tests using fuzzy matching (case-insensitive)
  • Press enter to exit search mode while keeping the filter active
  • Press esc to clear the search filter and show all tests

Feature Roadmap

  • Filter tests by status (pass/fail/skip)
  • Support for light mode
  • Add inline mode to show test summary
  • Add animated chars

Bug Fixes

  • Add responsive wrapping for the help
  • When items collapsed and viewport is too large, rerender to remove whitespace

Credits

The UI design of sift is heavily inspired by the vitest cli

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
pkg

Jump to

Keyboard shortcuts

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