Explorar o código

update build script for ix for coverage

Oren Novotny %!s(int64=9) %!d(string=hai) anos
pai
achega
88696bfb2f
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      Ix.NET/Source/build-new.ps1

+ 3 - 3
Ix.NET/Source/build-new.ps1

@@ -81,7 +81,7 @@ Write-Host "Running tests" -Foreground Green
 $testDirectory = Join-Path $scriptPath "Tests"  
 
 # Execute OpenCover with a target of "dotnet test"
-.\packages\OpenCover\tools\OpenCover.Console.exe  -register:user -oldStyle -mergeoutput -target:dotnet.exe -threshold:1 -targetdir:"$testDirectory" -targetargs:"test $testDirectory -c $configuration" -output:"$outputFile" -skipautoprops -returntargetcode "-excludebyattribute:System.Diagnostics.DebuggerNonUserCodeAttribute" -nodefaultfilters  -hideskipped:All -filter:"+[*]* -[*.Tests]* -[Tests]* -[xunit.*]*" 
+.\packages\OpenCover\tools\OpenCover.Console.exe  -register:user -oldStyle -mergeoutput -target:dotnet.exe -targetdir:"$testDirectory" -targetargs:"test $testDirectory -c $configuration" -output:"$outputFile" -skipautoprops -returntargetcode "-excludebyattribute:System.Diagnostics.DebuggerNonUserCodeAttribute;System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute" -nodefaultfilters  -hideskipped:All -filter:"+[*]* -[*.Tests]* -[Tests]* -[xunit.*]*" 
 
 if ($LastExitCode -ne 0) { 
     Write-Host "Error with tests" -Foreground Red
@@ -98,8 +98,8 @@ if ($env:CI -eq 'True')
 }
 else
 {
-	.\packages\ReportGenerator\tools\ReportGenerator.exe -reports:"$outputFile" -targetdir:"$outputPath"
-	 &$outPutPath/index.htm
+    .\packages\ReportGenerator\tools\ReportGenerator.exe -reports:"$outputFile" -targetdir:"$outputPath"
+     &$outPutPath/index.htm
 }
 
 Write-Host "Reverting AssemblyInfo's" -Foreground Green