sajibsrs / go-test-label

Minimal and simplest way to add colored label to Golang console text for test cases.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go test label

Minimal and simplest way to add colored label to golang console text for test cases.

go-test-label

Instructions

Install

Add module to the project by running

go get github.com/sajibsrs/go-test-label

Import

import label "github.com/sajibsrs/go-test-label"

Usage

Boolean param defines whether label will have background.

label := label.NewLabel(false) // param boolean
t.Logf("%sTV turned off", label.Pass)

Test

Run test with in terminal with verbose mode

go test -v

About

Minimal and simplest way to add colored label to Golang console text for test cases.

License:MIT License


Languages

Language:Go 100.0%