Skip to content

Commit

Permalink
Vs samples (#90)
Browse files Browse the repository at this point in the history
* adding cpp static source view scenario,

* Formatting,

* formatting,

* more,

* again,

* Adding runsettings,
  • Loading branch information
fhnaseer authored Jan 19, 2024
1 parent ec1e58a commit 7ccd598
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions samples/VisualStudio/scenarios/scenario01/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,25 @@ Collect and view code coverage in Microsoft Visual Studio Enterprise.

4. Specify [cobertura.runsettings](cobertura.runsettings) file to generate cobertura report instead of default coverage report.

```xml
<?xml version="1.0" encoding="utf-8"?>
<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>
<Format>cobertura</Format>
<CodeCoverage>
<UseVerifiableInstrumentation>False</UseVerifiableInstrumentation>
<EnableStaticNativeInstrumentation>False</EnableStaticNativeInstrumentation>
<EnableDynamicNativeInstrumentation>False</EnableDynamicNativeInstrumentation>
</CodeCoverage>
</Configuration>
</DataCollector>
</DataCollectors>
</DataCollectionRunSettings>
</RunSettings>
```
![runsettings-file](runsttings-set.png)

## Enable code coverage coloring
Expand Down

0 comments on commit 7ccd598

Please sign in to comment.