Skip to content

Commit

Permalink
add code coverage logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jhendrixMSFT committed Jul 22, 2020
1 parent ce6fbb3 commit c77edfb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion eng/pipelines/templates/steps/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ steps:
- pwsh: |
$coverageFiles = [Collections.Generic.List[String]]@()
Get-Childitem -recurse -path $(SCOPE) -filter coverage.txt | foreach-object { $coverageFiles.Add($_.FullName) }
Get-Childitem -recurse -path $(SCOPE) -filter coverage.txt | foreach-object {
$covFile = $_.FullName
Write-Host "Adding $covFile to the list of code coverage files"
$coverageFiles.Add($covFile)
}
gocovmerge $coverageFiles > mergedCoverage.txt
gocov convert ./mergedCoverage.txt > ./coverage.json
# gocov converts rely on standard input
Expand Down

0 comments on commit c77edfb

Please sign in to comment.