Last active
December 22, 2018 16:13
-
-
Save guitarrapc/06358b0b0ee5f67214fb8ed78024eff5 to your computer and use it in GitHub Desktop.
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
- pwsh -c "$testresult = Invoke-Pester -OutputFormat NUnitXml -OutputFile testresult.xml -CodeCoverage src/Utf8BomHeader.psm1 -PassThru; $p = [math]::floor(100 - (($testresult.CodeCoverage.NumberOfCommandsMissed / $testresult.CodeCoverage.NumberOfCommandsAnalyzed) * 100));(Get-Content $TextFilePath -Raw) -replace '!\[Test Coverage\].+\)', '![Test Coverage](https://img.shields.io/badge/coverage-$p%25-red.svg?maxAge=60)' | Set-Content -Path README.md" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment