Commit ff174b0
test_runner: add extra fields in AssertionError YAML
Many TAP reporters offer special-case handling of YAML objects
containing `expected`, `actual`, and `operator` fields, as produced by
`AssertionError` and similar userland Error classes.
PR-URL: #44952
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent b39dcde commit ff174b0Copy full SHA for ff174b0
File tree
Expand file treeCollapse file tree
3 files changed
+31
-0
lines changedOpen diff view settings
Filter options
- lib/internal/test_runner
- test/message
Expand file treeCollapse file tree
3 files changed
+31
-0
lines changedOpen diff view settings
Collapse file
lib/internal/test_runner/tap_stream.js
Copy file name to clipboardExpand all lines: lib/internal/test_runner/tap_stream.js+25Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
179 | 179 | |
180 | 180 | |
181 | 181 | |
| 182 | + |
| 183 | + |
| 184 | + |
182 | 185 | |
183 | 186 | |
184 | 187 | |
185 | 188 | |
186 | 189 | |
| 190 | + |
| 191 | + |
| 192 | + |
| 193 | + |
187 | 194 | |
188 | 195 | |
189 | 196 | |
190 | 197 | |
191 | 198 | |
192 | 199 | |
| 200 | + |
| 201 | + |
| 202 | + |
| 203 | + |
| 204 | + |
| 205 | + |
193 | 206 | |
194 | 207 | |
195 | 208 | |
| ||
201 | 214 | |
202 | 215 | |
203 | 216 | |
| 217 | + |
| 218 | + |
| 219 | + |
| 220 | + |
| 221 | + |
| 222 | + |
| 223 | + |
| 224 | + |
204 | 225 | |
205 | 226 | |
206 | 227 | |
| ||
229 | 250 | |
230 | 251 | |
231 | 252 | |
| 253 | + |
| 254 | + |
| 255 | + |
| 256 | + |
232 | 257 | |
Collapse file
test/message/test_runner_describe_it.out
Copy file name to clipboardExpand all lines: test/message/test_runner_describe_it.out+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
123 | 123 | |
124 | 124 | |
125 | 125 | |
| 126 | + |
| 127 | + |
| 128 | + |
126 | 129 | |
127 | 130 | |
128 | 131 | |
|
Collapse file
test/message/test_runner_output.out
Copy file name to clipboardExpand all lines: test/message/test_runner_output.out+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
133 | 133 | |
134 | 134 | |
135 | 135 | |
| 136 | + |
| 137 | + |
| 138 | + |
136 | 139 | |
137 | 140 | |
138 | 141 | |
|
0 commit comments