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
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -162,6 +162,13 @@ You can also include coverage of the test assembly itself by setting `/p:Include
162
162
Neither track nor record auto-implemented properties.
163
163
Syntax: `/p:SkipAutoProps=true`
164
164
165
+
### Methods that do not return
166
+
167
+
Methods that do not return can be marked with attributes to cause statements after them to be excluded from coverage. `DoesNotReturnAttribute` is included by default.
168
+
169
+
Attributes can be specified with the following syntax.
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
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,7 @@ static int Main(string[] args)
63
63
CommandOptionskipAutoProp=app.Option("--skipautoprops","Neither track nor record auto-implemented properties.",CommandOptionType.NoValue);
64
64
CommandOptionmergeWith=app.Option("--merge-with","Path to existing coverage result to merge.",CommandOptionType.SingleValue);
65
65
CommandOptionuseSourceLink=app.Option("--use-source-link","Specifies whether to use SourceLink URIs in place of file system paths.",CommandOptionType.NoValue);
66
+
CommandOptiondoesNotReturnAttributes=app.Option("--does-not-return-attribute","Attributes that mark methods that do not return.",CommandOptionType.MultipleValue);
0 commit comments