Skip to content
Merged
Show file tree
Hide file tree
Changes from 47 commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
0dfdabb
Create CodeCoverage.yml
trwalke Oct 31, 2024
4a294f6
Update CodeCoverage.yml
trwalke Oct 31, 2024
7ddb9f3
Update CodeCoverage.runsettings
trwalke Nov 1, 2024
5f6d4d3
Update CodeCoverage.runsettings
trwalke Nov 1, 2024
cb12be5
Delete .github/workflows/CodeCoverage.yml
trwalke Nov 1, 2024
c47e97f
Update CodeCoverage.runsettings
trwalke Nov 1, 2024
87b41eb
Update template-run-integration-tests.yaml
trwalke Nov 1, 2024
1ab5e07
Update template-run-unit-tests.yaml
trwalke Nov 1, 2024
c5001d0
Update CodeCoverage.runsettings
trwalke Nov 4, 2024
fc6f8b6
Update CodeCoverage.runsettings
trwalke Nov 4, 2024
1c1f3ab
Update CodeCoverage.runsettings
trwalke Nov 4, 2024
40524b8
Update CodeCoverage.runsettings
trwalke Nov 4, 2024
e288e1b
Update CodeCoverage.runsettings
trwalke Nov 4, 2024
bbf428d
Update CodeCoverage.runsettings
trwalke Nov 5, 2024
1c93d92
Update CodeCoverage.runsettings
trwalke Nov 5, 2024
9aeda9f
Update CodeCoverage.runsettings
trwalke Nov 6, 2024
e56eff5
Update CodeCoverage.runsettings
trwalke Nov 6, 2024
f23b537
Update CodeCoverage.runsettings
trwalke Nov 6, 2024
c0b2209
Update CodeCoverage.runsettings
trwalke Nov 6, 2024
6ca8847
Updating code coverage
Nov 7, 2024
18a5eff
Updating coverage
Nov 7, 2024
c0cfb90
Removing unneeded source files
Nov 8, 2024
a13039f
Removing config
Nov 8, 2024
55753fe
Adding more exclusion folders
Nov 8, 2024
f0e8ef7
Update
Nov 8, 2024
74f24d5
Config update
Nov 8, 2024
5933cb1
update
Nov 8, 2024
3e07ec6
Updating code coverage
Nov 8, 2024
ae1e08a
Update
Nov 8, 2024
2cac971
Update
Nov 8, 2024
285ec62
Update
Nov 8, 2024
f9ce88e
Update
Nov 8, 2024
f27ce46
Update
Nov 8, 2024
ca44276
Update
Nov 8, 2024
e443ae8
Update
Nov 11, 2024
684b90a
Code Coverage Update
Nov 11, 2024
10d7858
Update
Nov 11, 2024
e75e20b
Update
Nov 11, 2024
d51a4f9
Update
Nov 11, 2024
27c3ece
Update
Nov 11, 2024
54030ac
update
Nov 11, 2024
7ad525f
Update template-run-integration-tests.yaml
trwalke Nov 11, 2024
677b794
Update template-run-unit-tests.yaml
trwalke Nov 11, 2024
f92e8c9
Update CodeCoverage.runsettings
trwalke Nov 13, 2024
a1804dc
Merge branch 'main' into trwalke/CodeCoverageUpdate
trwalke Nov 13, 2024
49002e1
Update
Nov 13, 2024
a2231f7
Update template-run-cachecompat-tests.yaml
trwalke Nov 13, 2024
d597433
Adding code coverage gate
Nov 13, 2024
eea1132
Updated code coverage to use variable
Nov 13, 2024
28d1d14
Merge commit 'eea11329b2f3c6df7ac7ad6416cf20ac3869886d' into trwalke/…
Nov 15, 2024
1fb9168
Update template-build-and-run-all-tests.yaml
trwalke Nov 19, 2024
4f47741
Apply suggestions from code review
trwalke Nov 19, 2024
4a83232
Merge branch 'main' into trwalke/CodeCoverageUpdate
trwalke Nov 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 37 additions & 31 deletions build/CodeCoverage.runsettings
Original file line number Diff line number Diff line change
@@ -1,40 +1,46 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>

<!-- Customised run settings file to exclude test assemblies from coverage.
See https://msdn.microsoft.com/en-us/library/jj159530.aspx for more info. -->

<!-- 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>
<!--
<!-- 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>

<!--
About include/exclude lists:
Empty "Include" clauses imply all; empty "Exclude" clauses imply none.
Each element in the list is a regular expression (ECMAScript syntax). See http://msdn.microsoft.com/library/2k3te2cs.aspx.
An item must first match at least one entry in the include list to be included.
Included items must then not match any entries in the exclude list to remain included.
-->

<!-- Match assembly file paths: -->
<ModulePaths>
<Include>
<ModulePath>.*\microsoft.identitymodel.clients.activedirectory.dll$</ModulePath>
<ModulePath>.*\microsoft.identity.core.dll$</ModulePath>
<ModulePath>.*\microsoft.identity.client.dll$</ModulePath>

</Include>
<Exclude>
</Exclude>
</ModulePaths>

</CodeCoverage>
</Configuration>
</DataCollector>
</DataCollectors>
</DataCollectionRunSettings>
</RunSettings>

-->
<ModulePaths>
<Include>
<ModulePath>.*\microsoft.identity.client.dll$</ModulePath>
</Include>
<Exclude>
<ModulePath>.*\\test\\.*</ModulePath>
<ModulePath>.*Test\.dll</ModulePath>
<ModulePath>.*Test\.exe</ModulePath>
</Exclude>
</ModulePaths>
<Sources>
<Exclude>
<Source>.*\\devapps\\.*</Source>
<Source>.*\\CacheCompat\\.*</Source>
<Source>.*\\obj\\.*</Source>
<Source>.*\\json\\.*</Source>
<Source>.*\\android\\.*</Source>
<Source>.*\\ios\\.*</Source>
</Exclude>
</Sources>
</CodeCoverage>
</Configuration>
</DataCollector>
</DataCollectors>
</DataCollectionRunSettings>
</RunSettings>
2 changes: 1 addition & 1 deletion build/template-run-cachecompat-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ steps:
testSelector: 'testAssemblies'
testAssemblyVer2: '**\CacheCompat\CommonCache.Test.Unit\bin\**\CommonCache.Test.Unit.dll'
searchFolder: '$(System.DefaultWorkingDirectory)'
codeCoverageEnabled: true
codeCoverageEnabled: false
failOnMinTestsNotRun: true
minimumExpectedTests: '1'
runInParallel: true
5 changes: 3 additions & 2 deletions build/template-run-integration-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ steps:
rerunFailedTests: true
rerunMaxAttempts: '3'
runInParallel: false
codeCoverageEnabled: true
codeCoverageEnabled: false
failOnMinTestsNotRun: true
minimumExpectedTests: '1'
pathtoCustomTestAdapters: 'C:\temp' # Workaround for test failure, as NUnit Test Adapter that gets detected seems to mess something up
Expand All @@ -28,7 +28,7 @@ steps:
rerunFailedTests: true
rerunMaxAttempts: '3'
runInParallel: false
codeCoverageEnabled: true
codeCoverageEnabled: false
failOnMinTestsNotRun: true
minimumExpectedTests: '1'

Expand All @@ -44,3 +44,4 @@ steps:
codeCoverageEnabled: true
failOnMinTestsNotRun: true
minimumExpectedTests: '1'
runSettingsFile: 'build\CodeCoverage.runsettings'
5 changes: 3 additions & 2 deletions build/template-run-unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ steps:
testAssemblyVer2: '**\Microsoft.Identity.Test.Unit\bin\**\net4*\Microsoft.Identity.Test.Unit.dll'
searchFolder: '$(System.DefaultWorkingDirectory)'
runInParallel: true
codeCoverageEnabled: true
codeCoverageEnabled: false
failOnMinTestsNotRun: true
minimumExpectedTests: '1'
pathtoCustomTestAdapters: 'C:\temp' # Workaround for test failure, as NUnit Test Adapter that gets detected seems to mess something up
Expand All @@ -27,7 +27,7 @@ steps:
testAssemblyVer2: '**\Microsoft.Identity.Test.Unit\bin\**\net4*\Microsoft.Identity.Test.Unit.dll'
searchFolder: '$(System.DefaultWorkingDirectory)'
runInParallel: true
codeCoverageEnabled: true
codeCoverageEnabled: false
failOnMinTestsNotRun: true
minimumExpectedTests: '1'

Expand All @@ -41,3 +41,4 @@ steps:
codeCoverageEnabled: true
failOnMinTestsNotRun: true
minimumExpectedTests: '1'
runSettingsFile: 'build\CodeCoverage.runsettings'
Loading