-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating code coverage config (#4983)
* Create CodeCoverage.yml * Update CodeCoverage.yml * Update CodeCoverage.runsettings * Update CodeCoverage.runsettings * Delete .github/workflows/CodeCoverage.yml * Update CodeCoverage.runsettings * Update template-run-integration-tests.yaml * Update template-run-unit-tests.yaml * Update CodeCoverage.runsettings * Update CodeCoverage.runsettings * Update CodeCoverage.runsettings * Update CodeCoverage.runsettings * Update CodeCoverage.runsettings * Update CodeCoverage.runsettings * Update CodeCoverage.runsettings * Update CodeCoverage.runsettings * Update CodeCoverage.runsettings * Update CodeCoverage.runsettings * Update CodeCoverage.runsettings * Updating code coverage * Updating coverage * Removing unneeded source files * Removing config * Adding more exclusion folders * Update * Config update * update * Updating code coverage * Update * Update * Update * Update * Update * Update * Update * Code Coverage Update * Update * Update * Update * Update * update * Update template-run-integration-tests.yaml * Update template-run-unit-tests.yaml * Update CodeCoverage.runsettings * Update * Update template-run-cachecompat-tests.yaml * Adding code coverage gate * Updated code coverage to use variable * Update template-build-and-run-all-tests.yaml * Apply suggestions from code review Co-authored-by: Gladwin Johnson <[email protected]> --------- Co-authored-by: trwalke <[email protected]> Co-authored-by: Gladwin Johnson <[email protected]>
- Loading branch information
1 parent
d28bc08
commit dc93a54
Showing
5 changed files
with
57 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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><!-- Exclude all test-related files --> | ||
<ModulePath>.*\\test\\.*</ModulePath> | ||
<ModulePath>.*Test\.dll</ModulePath> | ||
<ModulePath>.*Test\.exe</ModulePath> | ||
</Exclude> | ||
</ModulePaths> | ||
<Sources> | ||
<Exclude><!-- Exclude generated or non-essential source files --> | ||
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters