Skip to content
Permalink
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 {
InvokeScript{
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{
$projectPath=$_.FullName
[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" />
</ItemGroup>
<ItemGroup>
<Reference Include="System.Web" />
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- File name extension must be .runsettings -->
<RunSettings>
<DataCollectionRunSettings>
<DataCollectors>
<DataCollector friendlyName="Code Coverage" uri="datacollector://Microsoft/CodeCoverage/2.0" assemblyQualifiedName="Microsoft.VisualStudio.Coverage.DynamicCoverageDataCollector, Microsoft.VisualStudio.TraceCollector, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<Configuration>
<CodeCoverage>
<ModulePaths>
<Include>
<ModulePath>.*Xpand.XAF.Modules.*\.dll$</ModulePath>
</Include>
<Exclude>
<ModulePath>.*Tests.dll</ModulePath>
<ModulePath>.*Hub.*</ModulePath>
</Exclude>
</ModulePaths>
<Functions>
<Exclude>
<!-- Exclude methods in a class or namespace named UnitTest: -->
<Function>.*\.Source\..*</Function>
</Exclude>
</Functions>
<!-- 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. -->
<UseVerifiableInstrumentation>True</UseVerifiableInstrumentation>
<!-- When set to True, collects coverage information from child processes that are launched with low-level ACLs, for example, UWP apps. -->
<AllowLowIntegrityProcesses>True</AllowLowIntegrityProcesses>
<!-- When set to True, collects coverage information from child processes that are launched by test or production code. -->
<CollectFromChildProcesses>True</CollectFromChildProcesses>
<!-- When set to True, restarts the IIS process and collects coverage information from it. -->
<CollectAspDotNet>False</CollectAspDotNet>
</CodeCoverage>
</Configuration>
</DataCollector>
</DataCollectors>
</DataCollectionRunSettings>
</RunSettings>
@@ -78,6 +78,7 @@ jobs:
distributionBatchType: basedOnTestCases
runInParallel: false
runTestsInIsolation: true
runSettingsFile: .\Xpand.XAF.Modules.Bin\CodeCoverage.runsettings
collectDumpOn: never
- job: TestPhase2
strategy:
@@ -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
strategy:

0 comments on commit c3d64a1

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