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

Utility for neatly summarising Go test output

License

Notifications You must be signed in to change notification settings

redbubble/go-passe

Repository files navigation

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.

About

Utility for neatly summarising Go test output

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages