Skip to content

Test-run does not start -- hangs after build #1731

@MahdiBM

Description

@MahdiBM

Describe the bug
Test run does not start and hangs after build. I can see the Build complete! (0.15s), but not the ◇ Test run started..
Waiting does not seem to help at all.
Restarting the test will make it run instantly like it should, assuming it doesn't bump into the same hang again.
This doesn't happen in CLI.

To Reproduce
Steps to reproduce the behavior:

  • Clone https://github.com/MahdiBM/swift-dns.
  • Run the tests using the VSCode test buttons and try a bunch of times.
    • Specifically i was using the normal run-test buttons, not e.g. "Debug test".
    • I don't think running a test vs suite vs all-tests makes a difference.

This is an intermittent behavior so it might take a bit to reproduce.

Expected behavior
Don't hang like in CLI.

Environment
macOS 26 is required if running on macOS. Swift 6.2 nightly (use Xcode toolchains).
Otherwise run in the devcontainer included with the project (although the swift docker image is pinned and hasn't been updated recently, maybe you'd want to remove the SHA256 pinning of the docker image if you want to use devcontainers.)

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions