Help us shape the future of Go! Take the 2026 Go Developer Survey

tparse

command module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2018 License: MIT Imports: 7 Imported by: 1

README

tparse Build Status

A command line tool for analyzing and summarizing go test output.

Don't forget to run go test with -json flag.

Pass Fail

By default, tparse will always return a summary box containing package-level details followed by errors, if any.

To get the summary of passed tests run tparse with the -pass flag. Tests will be grouped by package and sorted by elapsed time (longest to shorted).

Installation

go get github.com/mfridman/tparse

Usage

Once tparse is installed there are 2 ways to use it:

  1. Run go test as you normally would, but add the -json flag and pipe the output to tparse.

Example:

go test fmt -json | tparse -all
  1. Save the output of go test with the -json flag into a file and call tparse with filename as an argument.
go test fmt -json > fmt.out
tparse -all fmt.out

Tip: run tparse -h to get usage and options.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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