I have CLI that codegen using swift-syntax. In swift-syntax 509 version, one can import the internal testing helper library and do this - it ought to generated a pretty-printed diff, nicer to compare large amount of string. I am not using swift-syntax with Swift Macros, so I feel I am out of option in version 600?
I am not sure what you refer to. assertBuildResult
has never been public API.
I recommend the fantastic swift-macro-testing
library by PointFree.
Thank you both! I am not working with Swift Macros but a CLI tools that codegens using SwiftSyntax. After investigation and thanks to the pointer to PointFree tools, I opt in to use GitHub - pointfreeco/swift-custom-dump: A collection of tools for debugging, diffing, and testing your application's data structures. expectNoDifference
. Turns out all I need is diffing XCAssert.