swiftlang / vscode-swift

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

Suppress swift-testing output when debugging XCTests #858

Closed plemarquand closed 3 weeks ago

plemarquand commented 3 weeks ago

When debugging an XCTest in a project that contains both XCTests and swift-testing tests the xctest utility runs both test executables. This results in an empty swift testing test run output being printed to console.

Prevent xctest from running the swift-testing binary by setting the SWIFT_TESTING_ENABLED environment variable to 0.

award999 commented 3 weeks ago

Verified