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
{{ message }}
Repository navigation
Commit 9f3ae73
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: src/Platform/Microsoft.Testing.Extensions.TrxReport/PACKAGE.md
+14-2Lines changed: 14 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,9 +22,21 @@ This package extends Microsoft.Testing.Platform with:
22
22
23
23
Enable TRX report generation via the `--report-trx` command line option.
24
24
25
-
On platforms that can launch a test-host process (all except Android, browser, iOS, tvOS, and WASI), TRX uses controller-backed recovery by default: the test host still streams results and generates the report during normal execution, but a surviving controller process can recover completed results into a TRX report if the test host crashes, hangs, or is stopped by `--timeout`. Android, browser, iOS, tvOS, and WASI cannot launch a test-host process, so TRX automatically falls back to its original in-process implementation there — no controller-backed recovery is attempted, and no configuration is required to get this fallback.
25
+
On macOS, Windows, Linux, and other platforms that support a controller process, TRX uses one by default. The test host generates the report during normal execution; the controller can recover completed results if the host crashes, hangs, or is stopped by `--timeout`. On Android, iOS, Mac Catalyst, tvOS, WASI, and in browsers, TRX always runs in-process, without controller-backed recovery.
26
26
27
-
The extra process has a measurable startup cost, which varies by target framework: for a trivial single-test run, launching the controller added no statistically measurable overhead on .NET (differences were within normal process-launch noise) but added roughly 700-800ms on .NET Framework in local measurements. Weigh this against the reliability benefit for your scenario, especially on .NET Framework or in tight inner-loop test runs.
27
+
The controller adds another process and may increase startup time.
28
+
29
+
Use `--report-trx --trx-mode:in-process` to generate a report without starting a controller for TRX. This can be useful when a launcher runs tests in a separate app, for example on a device or simulator.
30
+
31
+
In-process mode cannot recover a report if the test host crashes, hangs, or is terminated. Other options, such as `--crashdump` or `--hangdump`, may still start a controller, but TRX recovery remains disabled.
32
+
33
+
Use `--trx-mode:out-of-process` to explicitly request controller-backed recovery. This mode is unavailable on Android, iOS, Mac Catalyst, tvOS, WASI, and in browsers. Both modes require `--report-trx`; leaving `--trx-mode` unspecified preserves the default behavior.
34
+
35
+
To make in-process mode the passive default, set `"commandLineOptionDefaults": { "trx-mode": "in-process" }` in `testconfig.json`. It takes effect only with `--report-trx`, and an explicit `--trx-mode` overrides it.
36
+
37
+
The controller passes its selected mode to the test host, so a custom launcher can use a child application with different configuration defaults. Configured run defaults remain passive when invoking `merge-trx` or `ms-trxcompare`.
38
+
39
+
When another extension starts a controller, in-process mode still includes that controller's file attachments in the completed TRX. This does not enable crash recovery or make TRX request a controller.
<value>TRX generation mode: 'in-process' disables controller-backed recovery; 'out-of-process' enables it (the default on supported platforms). Requires '--report-trx'.</value>
205
+
<comment>Do not localize format name {Locked="TRX"}, mode names {Locked="in-process"}{Locked="out-of-process"}, or option name {Locked="--report-trx"}.</comment>
<note>Do not localize format name {Locked="TRX"}.</note>
104
104
</trans-unit>
105
+
<trans-unitid="TrxModeInvalidValue">
106
+
<source>'--trx-mode' expects 'in-process' or 'out-of-process'</source>
107
+
<targetstate="new">'--trx-mode' expects 'in-process' or 'out-of-process'</target>
108
+
<note>Do not localize option name {Locked="--trx-mode"} or mode names {Locked="in-process"}{Locked="out-of-process"}.</note>
109
+
</trans-unit>
110
+
<trans-unitid="TrxModeOptionDescription">
111
+
<source>TRX generation mode: 'in-process' disables controller-backed recovery; 'out-of-process' enables it (the default on supported platforms). Requires '--report-trx'.</source>
112
+
<targetstate="new">TRX generation mode: 'in-process' disables controller-backed recovery; 'out-of-process' enables it (the default on supported platforms). Requires '--report-trx'.</target>
113
+
<note>Do not localize format name {Locked="TRX"}, mode names {Locked="in-process"}{Locked="out-of-process"}, or option name {Locked="--report-trx"}.</note>
114
+
</trans-unit>
115
+
<trans-unitid="TrxModeOutOfProcessNotSupported">
116
+
<source>'--trx-mode out-of-process' is not supported on this platform</source>
117
+
<targetstate="new">'--trx-mode out-of-process' is not supported on this platform</target>
118
+
<note>Do not localize option and value {Locked="--trx-mode out-of-process"}.</note>
119
+
</trans-unit>
120
+
<trans-unitid="TrxModeRequiresTrxReport">
121
+
<source>'--trx-mode' requires '--report-trx' to be enabled</source>
122
+
<targetstate="new">'--trx-mode' requires '--report-trx' to be enabled</target>
123
+
<note>Do not localize option names {Locked="--trx-mode"}{Locked="--report-trx"}.</note>
<note>Do not localize format name {Locked="TRX"}.</note>
104
104
</trans-unit>
105
+
<trans-unitid="TrxModeInvalidValue">
106
+
<source>'--trx-mode' expects 'in-process' or 'out-of-process'</source>
107
+
<targetstate="new">'--trx-mode' expects 'in-process' or 'out-of-process'</target>
108
+
<note>Do not localize option name {Locked="--trx-mode"} or mode names {Locked="in-process"}{Locked="out-of-process"}.</note>
109
+
</trans-unit>
110
+
<trans-unitid="TrxModeOptionDescription">
111
+
<source>TRX generation mode: 'in-process' disables controller-backed recovery; 'out-of-process' enables it (the default on supported platforms). Requires '--report-trx'.</source>
112
+
<targetstate="new">TRX generation mode: 'in-process' disables controller-backed recovery; 'out-of-process' enables it (the default on supported platforms). Requires '--report-trx'.</target>
113
+
<note>Do not localize format name {Locked="TRX"}, mode names {Locked="in-process"}{Locked="out-of-process"}, or option name {Locked="--report-trx"}.</note>
114
+
</trans-unit>
115
+
<trans-unitid="TrxModeOutOfProcessNotSupported">
116
+
<source>'--trx-mode out-of-process' is not supported on this platform</source>
117
+
<targetstate="new">'--trx-mode out-of-process' is not supported on this platform</target>
118
+
<note>Do not localize option and value {Locked="--trx-mode out-of-process"}.</note>
119
+
</trans-unit>
120
+
<trans-unitid="TrxModeRequiresTrxReport">
121
+
<source>'--trx-mode' requires '--report-trx' to be enabled</source>
122
+
<targetstate="new">'--trx-mode' requires '--report-trx' to be enabled</target>
123
+
<note>Do not localize option names {Locked="--trx-mode"}{Locked="--report-trx"}.</note>
<note>Do not localize format name {Locked="TRX"}.</note>
104
104
</trans-unit>
105
+
<trans-unitid="TrxModeInvalidValue">
106
+
<source>'--trx-mode' expects 'in-process' or 'out-of-process'</source>
107
+
<targetstate="new">'--trx-mode' expects 'in-process' or 'out-of-process'</target>
108
+
<note>Do not localize option name {Locked="--trx-mode"} or mode names {Locked="in-process"}{Locked="out-of-process"}.</note>
109
+
</trans-unit>
110
+
<trans-unitid="TrxModeOptionDescription">
111
+
<source>TRX generation mode: 'in-process' disables controller-backed recovery; 'out-of-process' enables it (the default on supported platforms). Requires '--report-trx'.</source>
112
+
<targetstate="new">TRX generation mode: 'in-process' disables controller-backed recovery; 'out-of-process' enables it (the default on supported platforms). Requires '--report-trx'.</target>
113
+
<note>Do not localize format name {Locked="TRX"}, mode names {Locked="in-process"}{Locked="out-of-process"}, or option name {Locked="--report-trx"}.</note>
114
+
</trans-unit>
115
+
<trans-unitid="TrxModeOutOfProcessNotSupported">
116
+
<source>'--trx-mode out-of-process' is not supported on this platform</source>
117
+
<targetstate="new">'--trx-mode out-of-process' is not supported on this platform</target>
118
+
<note>Do not localize option and value {Locked="--trx-mode out-of-process"}.</note>
119
+
</trans-unit>
120
+
<trans-unitid="TrxModeRequiresTrxReport">
121
+
<source>'--trx-mode' requires '--report-trx' to be enabled</source>
122
+
<targetstate="new">'--trx-mode' requires '--report-trx' to be enabled</target>
123
+
<note>Do not localize option names {Locked="--trx-mode"}{Locked="--report-trx"}.</note>
124
+
</trans-unit>
105
125
<trans-unitid="TrxReportArtifactDescription">
106
126
<source>Test session</source>
107
127
<targetstate="translated">Sesión de prueba</target>
<note>Do not localize format name {Locked="TRX"}.</note>
104
104
</trans-unit>
105
+
<trans-unitid="TrxModeInvalidValue">
106
+
<source>'--trx-mode' expects 'in-process' or 'out-of-process'</source>
107
+
<targetstate="new">'--trx-mode' expects 'in-process' or 'out-of-process'</target>
108
+
<note>Do not localize option name {Locked="--trx-mode"} or mode names {Locked="in-process"}{Locked="out-of-process"}.</note>
109
+
</trans-unit>
110
+
<trans-unitid="TrxModeOptionDescription">
111
+
<source>TRX generation mode: 'in-process' disables controller-backed recovery; 'out-of-process' enables it (the default on supported platforms). Requires '--report-trx'.</source>
112
+
<targetstate="new">TRX generation mode: 'in-process' disables controller-backed recovery; 'out-of-process' enables it (the default on supported platforms). Requires '--report-trx'.</target>
113
+
<note>Do not localize format name {Locked="TRX"}, mode names {Locked="in-process"}{Locked="out-of-process"}, or option name {Locked="--report-trx"}.</note>
114
+
</trans-unit>
115
+
<trans-unitid="TrxModeOutOfProcessNotSupported">
116
+
<source>'--trx-mode out-of-process' is not supported on this platform</source>
117
+
<targetstate="new">'--trx-mode out-of-process' is not supported on this platform</target>
118
+
<note>Do not localize option and value {Locked="--trx-mode out-of-process"}.</note>
119
+
</trans-unit>
120
+
<trans-unitid="TrxModeRequiresTrxReport">
121
+
<source>'--trx-mode' requires '--report-trx' to be enabled</source>
122
+
<targetstate="new">'--trx-mode' requires '--report-trx' to be enabled</target>
123
+
<note>Do not localize option names {Locked="--trx-mode"}{Locked="--report-trx"}.</note>
124
+
</trans-unit>
105
125
<trans-unitid="TrxReportArtifactDescription">
106
126
<source>Test session</source>
107
127
<targetstate="translated">Session de test</target>
<note>Do not localize format name {Locked="TRX"}.</note>
104
104
</trans-unit>
105
+
<trans-unitid="TrxModeInvalidValue">
106
+
<source>'--trx-mode' expects 'in-process' or 'out-of-process'</source>
107
+
<targetstate="new">'--trx-mode' expects 'in-process' or 'out-of-process'</target>
108
+
<note>Do not localize option name {Locked="--trx-mode"} or mode names {Locked="in-process"}{Locked="out-of-process"}.</note>
109
+
</trans-unit>
110
+
<trans-unitid="TrxModeOptionDescription">
111
+
<source>TRX generation mode: 'in-process' disables controller-backed recovery; 'out-of-process' enables it (the default on supported platforms). Requires '--report-trx'.</source>
112
+
<targetstate="new">TRX generation mode: 'in-process' disables controller-backed recovery; 'out-of-process' enables it (the default on supported platforms). Requires '--report-trx'.</target>
113
+
<note>Do not localize format name {Locked="TRX"}, mode names {Locked="in-process"}{Locked="out-of-process"}, or option name {Locked="--report-trx"}.</note>
114
+
</trans-unit>
115
+
<trans-unitid="TrxModeOutOfProcessNotSupported">
116
+
<source>'--trx-mode out-of-process' is not supported on this platform</source>
117
+
<targetstate="new">'--trx-mode out-of-process' is not supported on this platform</target>
118
+
<note>Do not localize option and value {Locked="--trx-mode out-of-process"}.</note>
119
+
</trans-unit>
120
+
<trans-unitid="TrxModeRequiresTrxReport">
121
+
<source>'--trx-mode' requires '--report-trx' to be enabled</source>
122
+
<targetstate="new">'--trx-mode' requires '--report-trx' to be enabled</target>
123
+
<note>Do not localize option names {Locked="--trx-mode"}{Locked="--report-trx"}.</note>
124
+
</trans-unit>
105
125
<trans-unitid="TrxReportArtifactDescription">
106
126
<source>Test session</source>
107
127
<targetstate="translated">Sessione di test</target>
<note>Do not localize format name {Locked="TRX"}.</note>
104
104
</trans-unit>
105
+
<trans-unitid="TrxModeInvalidValue">
106
+
<source>'--trx-mode' expects 'in-process' or 'out-of-process'</source>
107
+
<targetstate="new">'--trx-mode' expects 'in-process' or 'out-of-process'</target>
108
+
<note>Do not localize option name {Locked="--trx-mode"} or mode names {Locked="in-process"}{Locked="out-of-process"}.</note>
109
+
</trans-unit>
110
+
<trans-unitid="TrxModeOptionDescription">
111
+
<source>TRX generation mode: 'in-process' disables controller-backed recovery; 'out-of-process' enables it (the default on supported platforms). Requires '--report-trx'.</source>
112
+
<targetstate="new">TRX generation mode: 'in-process' disables controller-backed recovery; 'out-of-process' enables it (the default on supported platforms). Requires '--report-trx'.</target>
113
+
<note>Do not localize format name {Locked="TRX"}, mode names {Locked="in-process"}{Locked="out-of-process"}, or option name {Locked="--report-trx"}.</note>
114
+
</trans-unit>
115
+
<trans-unitid="TrxModeOutOfProcessNotSupported">
116
+
<source>'--trx-mode out-of-process' is not supported on this platform</source>
117
+
<targetstate="new">'--trx-mode out-of-process' is not supported on this platform</target>
118
+
<note>Do not localize option and value {Locked="--trx-mode out-of-process"}.</note>
119
+
</trans-unit>
120
+
<trans-unitid="TrxModeRequiresTrxReport">
121
+
<source>'--trx-mode' requires '--report-trx' to be enabled</source>
122
+
<targetstate="new">'--trx-mode' requires '--report-trx' to be enabled</target>
123
+
<note>Do not localize option names {Locked="--trx-mode"}{Locked="--report-trx"}.</note>
0 commit comments