Generate Swift Testing code with Macros

I believe this is a constraint, in some form, of how macros are expanded. @Douglas_Gregor are you able to provide any insight?

The __TestContainer-conforming enum is a side effect of how we currently emit test metadata into the binary. This type will go away in the future and be replaced by some in situ symbols, but we're not there yet.

Boring ABI plans/details here
  • I discussed the current design and future plans a bit in this older forum post.
  • We have documented our prospective "permanent" ABI here, which needs to be reviewed and approved by the testing workgroup once that's up and running. Note this design isn't finalized yet.
  • Emission of data conforming to the "new" ABI is dependent on the @section attribute which is being pitched here.
1 Like