Skip to content
This repository has been archived by the owner on Jun 14, 2019. It is now read-only.

Latest commit

 

History

History
68 lines (39 loc) · 1.93 KB

README.md

File metadata and controls

68 lines (39 loc) · 1.93 KB

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.