Commit e3d53ebd authored by Steve Azzopardi's avatar Steve Azzopardi

Merge branch 'exclude-mocks-from-coverage-report' into 'master'

Exclude mock files from coverage reporting

See merge request !1334
parents 980ab2fc 52a91d9e
Pipeline #58366560 passed with stages
in 81 minutes and 57 seconds
......@@ -150,7 +150,7 @@ computeCoverageReport() {
mkdir -p "${reportDirectory}"
echo "mode: ${coverMode}" > ${sourceFile}
grep -h -v -e "^mode:" -e "executors/docker/bindata.go" .cover/*.${coverMode}.cover.txt >> ${sourceFile}
grep -h -v -E -e "^mode:" -e "\/mock_[^\.]+\.go" .cover/*.${coverMode}.cover.txt >> ${sourceFile}
printMessage "Generating HTML coverage report"
go tool cover -o ${htmlReportFile} -html=${sourceFile}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment