Skip to content
Browse files

Fix COdeCoverage stats

  • Loading branch information...
apobekiaris committed Oct 8, 2019
1 parent d7ecaf2 commit c3d64a1d83a2d16e2c2dbac18eda85c6b868a7a9
@@ -26,6 +26,7 @@ Task IndexSources{
task Init {
New-Item "$PSScriptRoot\bin" -ItemType Directory -Force |Out-Null
Get-ChildItem "CodeCoverage.runsettings" -Recurse|Copy-Item -Destination "$PSScriptRoot\bin\CodeCoverage.runsettings" -Force
$versionMismatch=Get-ChildItem $PSScriptRoot *.csproj -Recurse|ForEach-Object{
[xml]$csproj=Get-Content $projectPath
@@ -51,6 +51,7 @@
<PackageReference Include="NUnit" Version="3.12.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.15.1" />
<PackageReference Include="Fasterflect.Xpand" Version="2.0.6" />
<PackageReference Include="Xpand.Patcher" Version="1.0.1" />
<Reference Include="System.Web" />
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- File name extension must be .runsettings -->
<DataCollector friendlyName="Code Coverage" uri="datacollector://Microsoft/CodeCoverage/2.0" assemblyQualifiedName="Microsoft.VisualStudio.Coverage.DynamicCoverageDataCollector, Microsoft.VisualStudio.TraceCollector, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<!-- Exclude methods in a class or namespace named UnitTest: -->
<!-- We recommend you do not change the following values: -->
<!-- Set this to True to collect coverage information for functions marked with the "SecuritySafeCritical" attribute. Instead of writing directly into a memory location from such functions, code coverage inserts a probe that redirects to another function, which in turns writes into memory. -->
<!-- When set to True, collects coverage information from child processes that are launched with low-level ACLs, for example, UWP apps. -->
<!-- When set to True, collects coverage information from child processes that are launched by test or production code. -->
<!-- When set to True, restarts the IIS process and collects coverage information from it. -->
@@ -78,6 +78,7 @@ jobs:
distributionBatchType: basedOnTestCases
runInParallel: false
runTestsInIsolation: true
runSettingsFile: .\Xpand.XAF.Modules.Bin\CodeCoverage.runsettings
collectDumpOn: never
- job: TestPhase2
@@ -107,6 +108,7 @@ jobs:
codeCoverageEnabled: true
distributionBatchType: basedOnAssembly
runInParallel: false
runSettingsFile: .\Xpand.XAF.Modules.Bin\CodeCoverage.runsettings
runTestsInIsolation: true
collectDumpOn: never
- job: Publish
@@ -78,7 +78,7 @@ jobs:
runInParallel: true
codeCoverageEnabled: true
distributionBatchType: 'basedOnAssembly'

runSettingsFile: .\Xpand.XAF.Modules.Bin\CodeCoverage.runsettings
collectDumpOn: never
- job: Publish

0 comments on commit c3d64a1

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