DEV Community

Discussion on: Excluding files from code coverage in GO

Collapse
 
marcello_h profile image
Marcelloh

go test -count=1 -coverprofile coverage.out -coverpkg=./... ./...
cat coverage.out | grep -v "mock" | grep -v "othername" > coverage.final.out