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: docs/test/customizing-code-coverage-analysis.md
+27-1Lines changed: 27 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -139,6 +139,31 @@ When static native instrumentation is enabled, Visual Studio will search and ins
139
139
140
140
::: moniker-end
141
141
142
+
### Include or exclude test assemblies
143
+
144
+
To include or exclude test assemblies from the coverage report, you can use the `<IncludeTestAssembly>` element in the `<Configuration>` section of your .runsettings file.
145
+
146
+
The following XML shows how to exclude test assemblies:
In this example, setting `<IncludeTestAssembly>` to `False`` will exclude test assemblies from the code coverage report. If you want to include test assemblies, set it to True.
166
+
142
167
### Regular expressions
143
168
144
169
Include and exclude nodes use regular expressions, which aren't the same as wildcards. All matches are case-insensitive. Some examples are:
@@ -317,7 +342,8 @@ Included items must then not match any entries in the exclude list to remain inc
0 commit comments