Commit 245d527
authored
Better collocate XCTFail source code context (#67)
XCTest usually does a pretty good job of attaching an out-of-test
XCTFail to the source code context that makes it most visible to Xcode
users, but for complex tests it seems to stop working after awhile, and
it also seems to have gotten less reliable in Xcode 15.
So we can do our best to take over. We can use @tgrapperon's call stack
code to find the test frame and manually assign it to the issue's source
code context.1 parent 4af50b3 commit 245d527
1 file changed
+15
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 19 | + | |
| 20 | + | |
25 | 21 | | |
26 | 22 | | |
27 | 23 | | |
| |||
34 | 30 | | |
35 | 31 | | |
36 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
37 | 46 | | |
38 | 47 | | |
39 | 48 | | |
| |||
0 commit comments