swiftlang / vscode-swift

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

XCTest output is not recorded when using CodeLLDB #1100

Closed plemarquand closed 1 month ago

plemarquand commented 1 month ago

Describe the bug When using CodeLLDB as the debug adapter XCTest output is not captured and so test results are not recorded. If swift.debugger.useDebugAdapterFromToolchain is true then output is captured and tests work as expected.

To Reproduce Create a simple XCTest:

import XCTest

class MyTests: XCTestCase {
    func testFoo() {
        print("x")
    }
}

Environment

michael-weng commented 1 month ago

I will verify this one.

michael-weng commented 1 month ago

Verified with and without the patch, the bug is fixed with the patch applied.