@@ -43,6 +43,7 @@ $target_dll_csharp7 = "..\StyleCop.Analyzers\StyleCop.Analyzers.Test.CSharp7\bin
4343$target_dll_csharp8 = " ..\StyleCop.Analyzers\StyleCop.Analyzers.Test.CSharp8\bin\$Configuration \net472\StyleCop.Analyzers.Test.CSharp8.dll"
4444$target_dll_csharp9 = " ..\StyleCop.Analyzers\StyleCop.Analyzers.Test.CSharp9\bin\$Configuration \net472\StyleCop.Analyzers.Test.CSharp9.dll"
4545$target_dll_csharp10 = " ..\StyleCop.Analyzers\StyleCop.Analyzers.Test.CSharp10\bin\$Configuration \net472\StyleCop.Analyzers.Test.CSharp10.dll"
46+ $target_dll_csharp11 = " ..\StyleCop.Analyzers\StyleCop.Analyzers.Test.CSharp11\bin\$Configuration \net472\StyleCop.Analyzers.Test.CSharp11.dll"
4647
4748If (Test-Path $report_folder ) {
4849 Remove-Item - Recurse - Force $report_folder
@@ -149,6 +150,24 @@ If (($AppVeyor -or $Azure) -and -not $?) {
149150 $exitCode = $LASTEXITCODE
150151}
151152
153+ & $opencover_console `
154+ - register:$register_mode `
155+ - threshold:1 - oldStyle `
156+ - returntargetcode `
157+ - hideskipped:All `
158+ - filter:" +[StyleCop*]*" `
159+ - excludebyattribute:* .ExcludeFromCodeCoverage* `
160+ - excludebyfile:* \* Designer.cs `
161+ - output:" $report_folder \OpenCover.StyleCopAnalyzers.xml" `
162+ - mergebyhash - mergeoutput `
163+ - target:" $xunit_runner_console_net472 " `
164+ - targetargs:" $target_dll_csharp11 -noshadow $AppVeyorArg -xml StyleCopAnalyzers.CSharp11.xunit.xml"
165+
166+ If (($AppVeyor -or $Azure ) -and -not $? ) {
167+ $host.UI.WriteErrorLine (' Build failed; coverage analysis may be incomplete.' )
168+ $exitCode = $LASTEXITCODE
169+ }
170+
152171If (-not $NoReport ) {
153172 & $report_generator - targetdir:$report_folder - reports:$report_folder \OpenCover.* .xml
154173 $host.UI.WriteLine (" Open $report_folder \index.htm to see code coverage results." )
0 commit comments