You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Documentation/MSBuildIntegration.md
+5
Original file line number
Diff line number
Diff line change
@@ -157,6 +157,11 @@ Both `Exclude` and `Include` properties can be used together but `Exclude` takes
157
157
158
158
You can also include coverage of the test assembly itself by setting `/p:IncludeTestAssembly` to `true`.
159
159
160
+
### Skip auto-implemented properties
161
+
162
+
Neither track nor record auto-implemented properties.
163
+
Syntax: `/p:SkipAutoProps=true`
164
+
160
165
### Note for Powershell / VSTS users
161
166
To exclude or include multiple assemblies when using Powershell scripts or creating a .yaml file for a VSTS build ```%2c``` should be used as a separator. Msbuild will translate this symbol to ```,```.
Copy file name to clipboardExpand all lines: src/coverlet.console/Program.cs
+4-2
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,7 @@ static int Main(string[] args)
60
60
CommandOptionexcludeAttributes=app.Option("--exclude-by-attribute","Attributes to exclude from code coverage.",CommandOptionType.MultipleValue);
61
61
CommandOptionincludeTestAssembly=app.Option("--include-test-assembly","Specifies whether to report code coverage of the test assembly.",CommandOptionType.NoValue);
62
62
CommandOptionsingleHit=app.Option("--single-hit","Specifies whether to limit code coverage hit reporting to a single hit for each location",CommandOptionType.NoValue);
63
+
CommandOptionskipAutoProp=app.Option("--skipautoprops","Neither track nor record auto-implemented properties.",CommandOptionType.NoValue);
63
64
CommandOptionmergeWith=app.Option("--merge-with","Path to existing coverage result to merge.",CommandOptionType.SingleValue);
64
65
CommandOptionuseSourceLink=app.Option("--use-source-link","Specifies whether to use SourceLink URIs in place of file system paths.",CommandOptionType.NoValue);
0 commit comments