Awesome Go

got

CategoryTesting
SubcategoryTesting Frameworks
Stars0

An enjoyable golang test framework

About got

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:

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

Frequently Asked Questions

What is got?

got is a Testing library for the Go programming language. An enjoyable golang test framework

How do I install got?

Install got with the Go module system using `go get ysmood/got`. Check the repository for the current installation instructions.

What category does got belong to?

got is listed under Testing, specifically Testing Frameworks.

← Back to Testing Frameworks