Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
- 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]($p%25-red.svg?maxAge=60)' | Set-Content -Path"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.