Skip to content

Commit ed07e9c

Browse files
authored
Merge pull request #8445 from nohwnd/patch-9
Update blame configuration.
2 parents 4e9ad7e + d2d193c commit ed07e9c

File tree

1 file changed

+33
-3
lines changed

1 file changed

+33
-3
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

0 commit comments

Comments
 (0)