Commit ef3e4af
authored
Fix a regression that prevents saving attachments. (#1400)
This PR ensures that the attachment-saving logic in `Runner` is applied
consistently. I made the mistake of moving that logic to
`configureEventHandlerRuntimeState()` because I'd forgotten that that
function only has an effect when we're running our own tests. And, as a
result, all our tests continued to pass because the code was in place
for our tests (and for nobody else.)
I've moved the code to a different location that we will always call
when running a `Runner` instance, so the issue is resolved now. I don't
have a great way to set up a unit test for this; tested manually at
desk.
### Checklist:
- [x] Code and documentation should follow the style of the [Style
Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md).
- [x] If public symbols are renamed or modified, DocC references should
be updated.1 parent d3b0af5 commit ef3e4af
File tree
3 files changed
+22
-11
lines changed- Sources/Testing
- Attachments
- Running
3 files changed
+22
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
504 | 524 | | |
505 | 525 | | |
506 | 526 | | |
| |||
517 | 537 | | |
518 | 538 | | |
519 | 539 | | |
520 | | - | |
| 540 | + | |
521 | 541 | | |
522 | 542 | | |
523 | 543 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | 51 | | |
62 | 52 | | |
63 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
| 419 | + | |
419 | 420 | | |
420 | 421 | | |
421 | 422 | | |
| |||
0 commit comments