forked from chroma-sdk/Colore
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreport_coverage.ps1
25 lines (20 loc) · 863 Bytes
/
report_coverage.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
[CmdletBinding()]
Param(
[Parameter(Mandatory=$True)]
[string]$Platform,
[Parameter(Mandatory=$True)]
[string]$Configuration
)
If ($Platform -ne "Any CPU")
{
Exit
}
$dll = "Corale.Colore.Tests\bin\$Configuration\Corale.Colore.Tests.dll"
$nunit = "packages\NUnit.Runners.2.6.4\tools\nunit-console.exe"
$filter = "+[Corale.Colore*]* -[*Tests]* -[*]*Constants -[*]Corale.Colore.Native* -[*]*NativeMethods -[*]*NativeWrapper -[*]Corale.Colore.Annotations*"
$targetArgs = "/noshadow /domain:single $dll"
$Env:NUNIT_EXEC = $nunit
$Env:OPENCOVER_FILTER = $filter
$Env:TARGET_ARGS = $targetArgs
.\packages\OpenCover.4.5.3723\OpenCover.Console.exe --% -register:user -filter:"%OPENCOVER_FILTER%" -target:"%NUNIT_EXEC%" -targetargs:"%TARGET_ARGS%" -output:coverage.xml
.\packages\coveralls.io.1.2.2\tools\coveralls.net.exe --opencover coverage.xml