swiftlang / vscode-swift

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

Parallel testing #710

Closed adam-fowler closed 4 months ago

adam-fowler commented 4 months ago

This adds a new test runner for running tests in parallel (It is in the menu at the top of the test explorer that includes test coverage). Because parallel testing doesn't produce a parseable output by default, I have to use --xunit-output to output xUnit XML. This is then parsed using the xml2js module.

There are a couple of issues with this as is

Because of the first two issues I am considering making this feature only available in Swift 6 onwards, just so we don't release a half arsed solution.