stackotter / swift-macro-toolkit

A powerful toolkit for creating concise and expressive Swift macros
Apache License 2.0
246 stars 15 forks source link

Update tests to use `swift-macro-testing` #6

Closed stackotter closed 6 months ago

stackotter commented 1 year ago

swift-macro-testing is an amazing library for testing macros in a very succinct way! Additionally, it automatically generates fixme's to update tests when the expected behaviour has changed 😱 Thanks to @maximkrouk for letting me know that it existed 🙏

This issue can be resolved once all of the tests have been switched over to using swift-macro-testing and the import for SwiftSyntaxMacrosTestSupport has been removed. I think this issue should be relatively introductory as swift-macro-testing's API isn't too different to Swift Syntax's assertMacroExpansion function, the main benefits come from improved diagnostics and automated test updates.