Commit 25ae7b4
(+semver: feature) Use DisplayName instead of methodName (#3)
This change uses the TestResult.DisplayName or TestResult.TestCase.DisplayName as the value of the name attribute of testCase elements.
This has the following benefits over using the name of the test method:
1. It includes the namespace and type name for disambiguation of similarly named tests
2. In case of theory tests, it includes the values of the parameters for disambiguation
The change should match the behavior of the TrxLogger, see https://github.com/Microsoft/vstest/blob/master/src/Microsoft.TestPlatform.Extensions.TrxLogger/TrxLogger.cs#L546 for details.1 parent 5b3d0ed commit 25ae7b4
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| 193 | + | |
| 194 | + | |
193 | 195 | | |
194 | 196 | | |
195 | 197 | | |
| |||
200 | 202 | | |
201 | 203 | | |
202 | 204 | | |
203 | | - | |
| 205 | + | |
204 | 206 | | |
205 | 207 | | |
206 | 208 | | |
| |||
369 | 371 | | |
370 | 372 | | |
371 | 373 | | |
372 | | - | |
| 374 | + | |
373 | 375 | | |
374 | 376 | | |
375 | 377 | | |
| |||
0 commit comments