swiftlang / vscode-swift

Visual Studio Code Extension for Swift
https://marketplace.visualstudio.com/items?itemName=sswg.swift-lang
Apache License 2.0
709 stars 47 forks source link

Use c99name for test target IDs #779

Closed plemarquand closed 2 months ago

plemarquand commented 2 months ago

The test target ID provided to XCTest needs to be a valid Swift identifier. The test target name is not guarenteed to be valid.

Instead, use the c99name, which is the name converted to a c identifier, which is also a valid swift identifier.