Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
test: fix coverage.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Jan 12, 2020
1 parent 7af7d24 commit 30adcec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,9 @@ if [ ! -d "$target" ]; then
fi

ee mkdir -p ".coverage/$target"
ee go test "./$target" -coverprofile=".coverage/$target/coverage.txt" -covermode=atomic
if [ "$target" = "terraform/graylog" ]; then
ee go test -v "./$target" -coverprofile=".coverage/$target/coverage.txt" -covermode=atomic
else
ee go test "./$target" -coverprofile=".coverage/$target/coverage.txt" -covermode=atomic
fi
ee go tool cover -html=".coverage/$target/coverage.txt"

0 comments on commit 30adcec

Please sign in to comment.