GitPedia

Got

An enjoyable golang test framework.

From ysmood·Updated May 26, 2026·View on GitHub·

- Pretty output using [gop](https://github.com/ysmood/gop) and [diff](lib/diff) - Fluent API design that takes the full advantage of IDE - Handy assertion helpers - Handy utils for testing - Value snapshot assertion - Customizable assertion error output The project is written primarily in Go, distributed under the MIT License license, first published in 2020. Key topics include: assert, dependency-free, diff, golang, lightweight.

Latest release: v0.43.0
April 23, 2026View Changelog →

Overview

An enjoyable golang test framework.

Features

  • Pretty output using gop and diff
  • Fluent API design that takes the full advantage of IDE
  • Handy assertion helpers
  • Handy utils for testing
  • Value snapshot assertion
  • Customizable assertion error output

Guides

Read the example project to get started.

Got uses itself as the test framework, so the source code itself is the best doc.

Install the vscode extension for snippets like: gp, gt, and gsetup.

To ensure test coverage of your project, you can run the command below:

shell
go test -race -coverprofile=coverage.out ./... go run github.com/ysmood/got/cmd/check-cov@latest

By default the check-cov requires 100% coverage, run it with the -h flag to see the help doc.

API reference

Link

Contributors

Showing top 3 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from ysmood/got via the GitHub API.Last fetched: 6/17/2026