test-result

command module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MIT Imports: 9 Imported by: 0

README

test-result CLI

The test-result CLI enhances the visibility and readability of Go test results by parsing JSON formatted output from the go test command. It provides a streamlined view of test outcomes, making it easier to understand test results at a glance. This tool is particularly useful for developers looking to quickly assess the status of their tests in continuous integration pipelines or local development environments.

Features

  • JSON Parsing: Directly parses JSON output from go test -json ..., providing a clear and structured display of test results.
  • Flexible Input: Supports input from both standard input (stdin) and files, allowing for versatility in how test results are fed into the tool.

Installation

TBD

Usage

To use test-result, you can pipe the output of go test directly into it or specify a file containing the JSON output from previous go test executions.

From Standard Input (stdin)


go test -v -p 1 -json ./... | test-result

From a File

go test -v -p 1 -json ./... > results.json
test-result -f results.json

Command Line Options

-a	All (pass, fail, skip) results are output.
-c  If you want to display in color even in a CI environment, please add the -c option.
-f string
    	Filename of the file containing the output from Go tests.
-v	Display the output of Go tests to stdout.

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