Skip to content

Commit 9233e84

Browse files
authored
Merge pull request #10394 from MicrosoftDocs/repo_sync_working_branch
Confirm merge from repo_sync_working_branch to main to sync with https://github.com/MicrosoftDocs/visualstudio-docs (branch main)
2 parents d287918 + e6defa5 commit 9233e84

File tree

2 files changed

+34
-4
lines changed

2 files changed

+34
-4
lines changed

docs/test/configure-unit-tests-by-using-a-dot-runsettings-file.md

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,39 @@ To customize any other type of diagnostic data adapters, use a [test settings fi
214214

215215
This option can help you isolate a problematic test that causes a test host crash. Running the collector creates an output file (*Sequence.xml*) in *TestResults*, which captures the order of execution of the test before the crash.
216216

217-
```xml
218-
<DataCollector friendlyName="blame" enabled="True">
219-
</DataCollector>
217+
You can run blame in 3 different modes:
218+
- Enabling just the sequence file, but not collecting dumps
219+
- Enabling crash dump, to create a dump when testhost crashes
220+
- Enabling hang dump, to create a dump when test does not finish before given timeout
221+
222+
The XML configuration should be placed directly into `<RunSettings>` node:
223+
224+
```xml
225+
</RunSettings>
226+
<RunConfiguration>
227+
</RunConfiguration>
228+
<LoggerRunSettings>
229+
<Loggers>
230+
<Logger friendlyName="blame" enabled="True" />
231+
</Loggers>
232+
</LoggerRunSettings>
233+
<DataCollectionRunSettings>
234+
<DataCollectors>
235+
<!-- Enables blame -->
236+
<DataCollector friendlyName="blame" enabled="True">
237+
<Configuration>
238+
<!-- Enables crash dump, with dump type "Full" or "Mini".
239+
Requires ProcDump in PATH for .NET Framework. -->
240+
<CollectDump DumpType="Full" />
241+
<!-- Enables hang dump or testhost and its child processes
242+
when a test hangs for more than 10 minutes.
243+
Dump type "Full", "Mini" or "None" (just kill the processes). -->
244+
<CollectDumpOnTestSessionHang TestTimeout="10min" HangDumpType="Full" />
245+
</Configuration>
246+
</DataCollector>
247+
</DataCollectors>
248+
</DataCollectionRunSettings>
249+
</RunSettings>
220250
```
221251

222252
## TestRunParameters

docs/test/unit-test-basics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ In this article, we use the development of a fictional application called `MyBan
4747

4848
Our first attempt at a design for the `MyBank` application includes an accounts component that represents an individual account and its transactions with the bank, and a database component that represents the functionality to aggregate and manage the individual accounts.
4949

50-
We create a `MyBank` solution that contains two projects:
50+
We create a `Bank` solution that contains two projects:
5151

5252
- `Accounts`
5353

0 commit comments

Comments
 (0)