From c74e137e6c8d677127de4f0c58bc609d10d70d28 Mon Sep 17 00:00:00 2001 From: Arif Mahmud Rana Date: Sun, 8 Aug 2021 17:32:47 +0600 Subject: [PATCH] feat: add badges and covermode in readme --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3d960a9..4776e57 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +##
[![Tag and release](https://github.com/arifmahmudrana/rand-str/actions/workflows/test-tag-and-release.yaml/badge.svg)](https://github.com/arifmahmudrana/rand-str/actions/workflows/test-tag-and-release.yaml) [![Go Report Card](https://goreportcard.com/badge/github.com/arifmahmudrana/rand-str)](https://goreportcard.com/report/github.com/arifmahmudrana/rand-str) [![codecov](https://codecov.io/gh/arifmahmudrana/rand-str/branch/main/graph/badge.svg)](https://codecov.io/gh/arifmahmudrana/rand-str)
+ Random string generator ================ @@ -33,11 +35,11 @@ go test -v -race ./... To get test coverage ```sh -go test -v -race -coverprofile=/tmp/go-cover.`basename $(pwd)`.out ./... && go tool cover -func=/tmp/go-cover.`basename $(pwd)`.out && unlink /tmp/go-cover.`basename $(pwd)`.out +go test -v -race -coverprofile=/tmp/go-cover.`basename $(pwd)`.out -covermode=atomic ./... && go tool cover -func=/tmp/go-cover.`basename $(pwd)`.out && unlink /tmp/go-cover.`basename $(pwd)`.out ``` Or ```sh -go test -v -race -coverprofile=/tmp/go-cover.`basename $(pwd)`.out ./... && go tool cover -html=/tmp/go-cover.`basename $(pwd)`.out && unlink /tmp/go-cover.`basename $(pwd)`.out +go test -v -race -coverprofile=/tmp/go-cover.`basename $(pwd)`.out -covermode=atomic ./... && go tool cover -html=/tmp/go-cover.`basename $(pwd)`.out && unlink /tmp/go-cover.`basename $(pwd)`.out ``` ## Build