File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,10 +9,20 @@ if ($null -eq (Get-Command "dotnet" -ErrorAction Ignore)) {
99}
1010
1111dotnet tool restore
12+ if ($LastExitCode -ne 0 ) { exit $LastExitCode }
13+
1214dotnet restore
15+ if ($LastExitCode -ne 0 ) { exit $LastExitCode }
16+
1317dotnet build -- no- restore -- configuration Release
18+ if ($LastExitCode -ne 0 ) { exit $LastExitCode }
19+
1420dotnet test -- no- build -- configuration Release -- coverage -- coverage- output- format cobertura -- coverage- output coverage.cobertura.xml -- coverage- settings .runsettings
21+ if ($LastExitCode -ne 0 ) { exit $LastExitCode }
22+
1523dotnet reportgenerator - reports:**/ TestResults/**/ coverage.cobertura.xml - targetdir:CoverageReport - reporttypes:" TextSummary" - verbosity:off
24+ if ($LastExitCode -ne 0 ) { exit $LastExitCode }
25+
1626Write-Host " "
1727Write-Host " Code coverage report:" - ForegroundColor DarkGreen
1828Write-Host " "
You can’t perform that action at this time.
0 commit comments