Skip to content

About

When testing a PeerMacro attached to a var with multiple properties, the test suite raises diagnostics that are not raised when using the macro in regular code.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

Macro Peer bug

When testing a PeerMacro attached to a var with multiple properties, the test suite raises diagnostics that are not raised when using the macro in regular code.

This also means that if the macro is raising any specific issues, they are also not testable, because the test suite short-circuits and exists early.

In Tests -> ConsumerTests -> ConsumerTests.swift, the macro raises no diagnostics:

Using the macro

But in Tests -> MacroImplementationTests -> ImplementationTests.swift that include the same raw code, two diagnostics are suddenly included:

Testing the macro

About

When testing a PeerMacro attached to a var with multiple properties, the test suite raises diagnostics that are not raised when using the macro in regular code.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages