Skip to content

Latest commit

 

History

History
49 lines (39 loc) · 1.67 KB

README.md

File metadata and controls

49 lines (39 loc) · 1.67 KB

ctest

Overview

Give color to the output according to the test result.
ctest = go test
go test option can also be used in ctest.

For example

go test -v ./... = ctest -v ./...
go test -v -cover ./... = ctest -v -cover ./...

Normal test code output

Test code output when using ctest

Usage

NAME:
   cTest - Give color to the output according to the test result.

USAGE:
   ctest [global options] [go test options]

AUTHOR:
   hmarf

COMMANDS:
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   -r          Do not output '=== RUN: ~'
   -p          Do not output '--- PASS: ~'
   -f          Do not output '--- FAIL: ~'
   --help, -h  show help

How to install

$ brew tap hmarf/tap
$ brew install hmarf/tap/ctest

How to use & Example

command explain output
ctest -v ./... Output test results in color
ctest -r -v ./... Output test results in color.
If the first characters of the output is === RUN:, the line is not printed
ctest -r -v -p ./... Output test results in color.
If the first characters of the output is === RUN: and --- PASS:, the line is not printed