Skip to content

Commit

Permalink
Run open cover tests as administrator
Browse files Browse the repository at this point in the history
  • Loading branch information
dbeuchler committed Sep 21, 2020
1 parent a454e5c commit bda874b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .build/BuildToolkit.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ function Invoke-CoverTests($SearchPath = $RootPath, $SearchFilter = "*.csproj",
$openCoverAgs = "-target:$global:NunitCli", "-targetargs:/config:$env:MORYX_BUILD_CONFIG /result:$nunitXml $testAssembly"
}

$openCoverAgs += "-log:Debug", "-register:user", "-output:$openCoverXml", "-hideskipped:all", "-skipautoprops";
$openCoverAgs += "-log:Debug", "-register:administrator", "-output:$openCoverXml", "-hideskipped:all", "-skipautoprops";
$openCoverAgs += "-returntargetcode" # We need the nunit return code
$openCoverAgs += "-filter:$includeFilter $excludeFilter"

Expand All @@ -336,8 +336,6 @@ function Invoke-CoverTests($SearchPath = $RootPath, $SearchFilter = "*.csproj",
Write-Host "Nunit exited with $errorText for $projectName";
Invoke-ExitCodeCheck $exitCode;
}

Invoke-ExitCodeCheck $LastExitCode;
}
}

Expand Down

0 comments on commit bda874b

Please sign in to comment.