go-passe

command module
v0.0.0-...-e1cbddb Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2019 License: MIT Imports: 8 Imported by: 0

README

go-passe

GoDoc Go Report Card Build Status

Utility for neatly summarising Go JSON test output.

DEPRECATED

This project is deprecated. Please consider using something like gotestsum instead, which, by avoiding the pipe approach, can better handle cases like compilation errors, etc.

Introduction

This allows the output from a go test -json command (the -json flag is introduced in Go 1.10) to be piped into it for prettier formatting and more easily identified test failures.

Example usage:

# Install this utility
$ go get -u github.com/redbubble/go-passe

# Run some tests
$ go test -v -json ./... | go-passe
What it looks like

Without go-passe: $ go test -v ./...

Screenshot of tests passing without go-passe

With go-passe: $ go test -v -json ./... | go-passe

Screenshot of tests passing with go-passe

Test failures are summarised at the end for readability.

Without go-passe: $ go test -v ./...

Screenshot of tests failing without go-passe

With go-passe: $ go test -v -json ./... | go-passe

Screenshot of tests failing with go-passe

Developing

go-passe uses dep for dependency management.

# Install dep if necessary
$ go get -u github.com/golang/dep/cmd/dep

# Ensure all dependencies are available/fetched
$ dep ensure

License

go-passe, Copyright © 2018 Redbubble

This software is made available under an MIT license.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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