Reply to Swift testing support in Swift Playgrounds Open the .swiftpm package and there is a Package.swift file within. It says not to edit it, but you can. Add test targets like you would any vanilla Swift package. Any tests you add will be picked up by the Xcode test explorer and run that way. Developer Tools & Services Xcode Jul ’24