This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
touch ./coverage.tmp && | |
echo 'mode: atomic' > coverage.out && | |
go list ./... | grep -v /mocks | grep -v /pb | xargs -n1 -I{} sh -c 'go test -v -race -covermode=atomic -coverprofile=coverage.tmp -coverpkg $(go list ./... | grep -v /mocks | grep -v /pb | tr "\n" ",") {} && tail -n +2 coverage.tmp >> coverage.out || exit 255' && rm coverage.tmp && | |
go tool cover -func=coverage.out && | |
go tool cover -html=coverage.out -o coverage.html && | |
rm coverage.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<TaskOptions> | |
<TaskOptions> | |
<option name="arguments" value="run --print-issued-lines=false $FileDir$ --fast" /> | |
<option name="checkSyntaxErrors" value="false" /> | |
<option name="description" /> | |
<option name="exitCodeBehavior" value="NEVER" /> | |
<option name="fileExtension" value="go" /> | |
<option name="immediateSync" value="true" /> | |
<option name="name" value="golangci-lint" /> | |
<option name="output" value="" /> |