Skip to content

Test Discovery Error (Swift 5.8) #394

Closed
@compnerd

Description

@compnerd

Describe the bug
It seems that test discovery is broken on main with the latest version of the plugin. Building and running tests simply states:

Test Discovery Error
 warning: '--list-tests' option is deprecated; use 'swift test list' instead
Error: unknown option '--skip-build'
Usage: list <options>
  See 'list --help' for more information.

To Reproduce
Steps to reproduce the behavior:

  • Install a recent build of Swift from main (see swift.org/download)
  • Try build tests for SourceKit-LSP

Expected behavior
Tests to be identified and be able to be executed.

Environment

  • OS: Windows 10
  • Swift version: Swift version 5.8-dev (LLVM b69b0f8449614a5, Swift 6ef09e95444e4c4)
  • Visual Studio Code version: 1.70.2
  • vscode-swift version: 0.7.0

Additional context
Not sure how long you can download the exact version of the toolchain, but it is here: https://ci-external.swift.org/job/swift-PR-build-toolchain-windows/154/artifact/build/artifacts/installer.exe

Metadata

Metadata

Assignees

No one assigned

    Labels

    SwiftPMSwift Package ManagerbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions