Skip to content
Permalink
Browse files

Update coverage.ps1

exclude *AttributeProvider*
  • Loading branch information...
hack2root committed Mar 5, 2019
1 parent 52120d4 commit cd4fbee27d5bf886a1319a31a9c08f88bead852e
Showing with 1 addition and 1 deletion.
  1. +1 −1 coverage.ps1
@@ -40,7 +40,7 @@ if(![System.IO.File]::Exists($(Join-Path -Path $CurrentDir -ChildPath "packages/

& dotnet-sonarscanner begin /o:"hack2root-github" /d:sonar.login="$env:SONARCLOUDTOKEN" /k:"build-core" /d:sonar.host.url="https://sonarcloud.io" /n:"build" /v:"1.0" /d:sonar.cs.opencover.reportsPaths="Build.Tests/coverage.opencover.xml" /d:sonar.coverage.inclusions="**/*.cs" /d:sonar.coverage.exclusions="**/Interface*.cs,**/*Test*.cs,**/*Exception*.cs,**/*Attribute*.cs,**/Middleware/*.cs,/Pages/*.cs,**/Program.cs,**/Startup.cs,**/sample/*,**/aspnetcore/*,**/wwwroot/*,**/xunit/*,**/*.js,**/coverage.opencover.xml" /d:sonar.sourceEncoding="UTF-8" /d:sonar.language=cs
& dotnet build --configuration Release
& dotnet test --configuration Release --no-build Build.Tests /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Include="[Build]*" -v:n
& dotnet test --configuration Release --no-build Build.Tests /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Include="[Build]*" /p:Exclude="[Build]*AttributeProvider*" -v:n
& dotnet-sonarscanner end /d:sonar.login="$env:SONARCLOUDTOKEN"

# Try to upload to Coveralls

0 comments on commit cd4fbee

Please sign in to comment.
You can’t perform that action at this time.