Skip to content

gest v1.1.2 β€” Jest-style testing for Go πŸ§ͺ

Choose a tag to compare

@caiolandgraf caiolandgraf released this 04 Mar 13:10
· 20 commits to main since this release
95ac853

Release notes β€” v1.1.2

-- only update time of watch :D

✨ New feature: Watch Mode

gest now ships with a built-in watch mode. No extra tools, no config β€” just a flag.

go run . --watch        # watch mode
go run . -w             # shorthand
go run . --watch -c     # watch + coverage table

How it works:

  • Runs immediately on startup β€” you see results before any file changes
  • Watches all .go files recursively from the current working directory (skips vendor/ and hidden dirs like .git/)
  • Debounced re-runs β€” rapid saves (e.g. editor auto-format on save) are collapsed into a single re-run via a 200 ms debounce
  • Full terminal clear before every re-run, including scrollback β€” each result appears fresh at the top
  • Compiled binary β€” builds your project to a temp binary in your OS temp directory (go build) for the session; much cleaner than go run on every change
  • Automatic cleanup β€” the temp binary is removed when you press Ctrl+C (SIGINT or SIGTERM). Nothing is left in your project directory

πŸ”§ Implementation details

All watch logic lives directly in gest/gest.go, consistent with the project's single-file philosophy. The flag is parsed inside RunRegistered(), so existing main.go files require zero changes.

πŸ“¦ Dependency added

github.com/fsnotify/fsnotify v1.9.0 β€” the only external dependency gest has ever added. Used exclusively by watch mode; the core test runner remains stdlib only.

πŸ“ Docs & copy updated

  • Navbar version badge: v1.0 β†’ v1.1.0
  • Hero badge: v1.0.0 β€” Now available β†’ v1.1.0 β€” Now available
  • "Zero dependencies" updated to "Minimal dependencies" across README, docs site, footer, search index, and philosophy sections
  • New Watch Mode section in the documentation with code examples and callouts
  • Watch Mode added to the sidebar nav and the search modal index
  • Docs site rebuilt (dist/)

Full Changelog: v1.1.1...v1.1.2