Thanks to visit codestin.com
Credit goes to github.com

Skip to content

mattvagni/gotestpretty

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gotestpretty

Prettier output for go test. Formatting is heavily inspired by (read "stolen from") Jest.

Install

go get -u github.com/jonbretman/gotestpretty

Usage

gotestpretty takes the output of go test with the -json flag. For example:

$ go test ./... -v -json | gotestpretty

Turns this...

Before

...into this

After

Features

  • Colorized output to make it clear which tests passed and which failed
  • Summary line at the end indicating how many passes, failures, and skipped tests there were
  • Summary of failed tests at the end with a small code snippet pointing at the line the error occurred
  • Subtests are shown clearly under the parent test

About

Pretty test output for go test

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 98.6%
  • Makefile 1.4%