Skip to content

hmarf/cTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages