swiftlang / swiftlang/swift-syntax

`SwiftSyntaxMacrosTestSupport` should warn when being used from Swift Testing

Open
#3,190 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
3.7k
Forks
553
Avg merge
5d 13h
Merged PRs (30d)
16

Description

### Description

`SwiftSyntaxMacrosTestSupport` does not work with Swift Testing and will cause false positives when running tests. The library should detect when it's being invoked in a Swift Testing environment and fail to build or at the very least show a warning that's hard to miss.

This is a stop gap until #2720 is resolved

### Steps to Reproduce

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.