diff --git a/.gitignore b/.gitignore index 8a1f524..9908da4 100644 --- a/.gitignore +++ b/.gitignore @@ -11,4 +11,5 @@ note/ .jvmrc .DS_Store vendor/ -c.out \ No newline at end of file +c.out +c.out.tmp \ No newline at end of file diff --git a/Makefile b/Makefile index f0b088c..45978e8 100644 --- a/Makefile +++ b/Makefile @@ -16,8 +16,8 @@ generate-mock: # run unit test unit-test: mkdir -p artifacts/report/coverage - go test -v -json -cover -coverprofile c.out ./... - go tool cover -html=c.out -o artifacts/report/coverage/index.html + go test -v -json -cover -coverprofile c.out.tmp ./... + cat c.out.tmp | grep -v "_mock.go" > c.out # build kt project build: build-connect build-shadow build-server build-dashboard