Skip to content

Commit 2b8a456

Browse files
Update documentation with new feature InstrumentModulesWithoutLocalSources (#1385)
Update documentation with new feature `InstrumentModulesWithoutLocalSources`
1 parent e11c14d commit 2b8a456

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

Documentation/GlobalTool.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Options:
3838
--merge-with Path to existing coverage result to merge.
3939
--use-source-link Specifies whether to use SourceLink URIs in place of file system paths.
4040
--does-not-return-attribute Attributes that mark methods that do not return.
41+
--instrument-modules-without-local-sources Specifies whether modules should be instrumented even if the sources from the PDBs can't be found locally.
4142
```
4243
4344
NB. For a [multiple value] options you have to specify values multiple times i.e.

Documentation/MSBuildIntegration.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,10 @@ You can also include coverage of the test assembly itself by setting `/p:Include
181181
Neither track nor record auto-implemented properties.
182182
Syntax: `/p:SkipAutoProps=true`
183183

184+
### Instrument module wihtout local sources file.
185+
186+
Syntax: `/p:InstrumentModulesWithoutLocalSources=true`
187+
184188
### Methods that do not return
185189

186190
Methods that do not return can be marked with attributes to cause statements after them to be excluded from coverage.

Documentation/VSTestIntegration.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ These are a list of options that are supported by coverlet. These can be specifi
9797
| IncludeTestAssembly | Include coverage of the test assembly. |
9898
| SkipAutoProps | Neither track nor record auto-implemented properties. |
9999
| DoesNotReturnAttribute | Methods marked with these attributes are known not to return, statements following them will be excluded from coverage |
100-
| DeterministicReport | Generates deterministic report in context of deterministic build. Take a look at [documentation](DeterministicBuild.md) for further informations. |
100+
| DeterministicReport | Generates deterministic report in context of deterministic build. Take a look at [documentation](DeterministicBuild.md) for further informations. |
101+
| InstrumentModulesWithoutLocalSources | Specifies whether modules should be instrumented even if the sources from the PDBs can't be found locally. |
101102

102103
How to specify these options via runsettings?
103104

@@ -119,6 +120,7 @@ How to specify these options via runsettings?
119120
<IncludeTestAssembly>true</IncludeTestAssembly>
120121
<SkipAutoProps>true</SkipAutoProps>
121122
<DeterministicReport>false</DeterministicReport>
123+
<InstrumentModulesWithoutLocalSources>false</InstrumentModulesWithoutLocalSources>
122124
</Configuration>
123125
</DataCollector>
124126
</DataCollectors>

0 commit comments

Comments
 (0)