Skip to content

Commit

Permalink
Code Coverage Core Only (microsoft#633)
Browse files Browse the repository at this point in the history
  • Loading branch information
nibanks authored Jul 23, 2020
1 parent 48f2420 commit 29a94ce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .azure/templates/run-spinquic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
pwsh: true
filePath: scripts/spin.ps1
${{ if eq(parameters.codeCoverage, true) }}:
arguments: -CodeCoverage -GenerateXmlResults -Timeout 600000 -RepeatCount 6 -Config ${{ parameters.config }} -Arch ${{ parameters.arch }} -Tls ${{ parameters.tls }}
arguments: -CodeCoverage -LogProfile Basic.Light -GenerateXmlResults -Timeout 600000 -RepeatCount 6 -Config ${{ parameters.config }} -Arch ${{ parameters.arch }} -Tls ${{ parameters.tls }}
${{ if eq(parameters.codeCoverage, false) }}:
arguments: -GenerateXmlResults -Timeout 600000 -RepeatCount 6 -Config ${{ parameters.config }} -Arch ${{ parameters.arch }} -Tls ${{ parameters.tls }}

Expand Down
2 changes: 1 addition & 1 deletion scripts/run-executable.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ function Start-Executable {
}
} elseif ($CodeCoverage) {
$pinfo.FileName = "C:\Program Files\OpenCppCoverage\OpenCppCoverage.exe"
$pinfo.Arguments = "--modules=$(Split-Path $Path -Parent) --cover_children --sources src\core --sources src\inc --sources src\platform --excluded_sources unittest --working_dir $($LogDir) --export_type binary:$(Join-Path $CoverageDir $CoverageName) -- $($Path) $($Arguments)"
$pinfo.Arguments = "--modules=$(Split-Path $Path -Parent) --cover_children --sources src\core --excluded_sources unittest --working_dir $($LogDir) --export_type binary:$(Join-Path $CoverageDir $CoverageName) -- $($Path) $($Arguments)"
$pinfo.WorkingDirectory = $LogDir
} else {
$pinfo.FileName = $Path
Expand Down
2 changes: 1 addition & 1 deletion scripts/run-gtest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ function Start-TestExecutable([String]$Arguments, [String]$OutputDir) {
} elseif ($CodeCoverage) {
$CoverageOutput = Join-Path $OutputDir $CoverageName
$pinfo.FileName = "C:\Program Files\OpenCppCoverage\OpenCppCoverage.exe"
$pinfo.Arguments = "--modules=$(Split-Path $Path -Parent) --cover_children --sources src\core --sources src\inc --sources src\platform --excluded_sources unittest --working_dir $($OutputDir) --export_type binary:$($CoverageOutput) -- $($Path) $($Arguments)"
$pinfo.Arguments = "--modules=$(Split-Path $Path -Parent) --cover_children --sources src\core --excluded_sources unittest --working_dir $($OutputDir) --export_type binary:$($CoverageOutput) -- $($Path) $($Arguments)"
$pinfo.WorkingDirectory = $OutputDir
} else {
$pinfo.FileName = $Path
Expand Down

0 comments on commit 29a94ce

Please sign in to comment.