Skip to content

[Bug]: Test explorer does not show any tests for multi-folder workspace #35501

@rfgamaral

Description

@rfgamaral

Version

1.1.13

Steps to reproduce

I've been working with the VS Code extension all day today, and everything was working just fine. Not exactly sure what I did, but the extension stopped working for multi-folder workspaces. I did update VS Code to v1.99 today, maybe that was it? I tried to downgrade to v1.98.x, but that didn't solve anything.

Feels similar to this old issue:

Expected behavior

  • Tests should be detected for all projects in a multi-folder workspace
  • Little green arrows should be shown next to each test
  • Projects should be detected correctly by the extension

Actual behavior

If I open my project folder directly, it works:

Image

If I open my workspace with a bunch of projects, it doesn't:

Image

The src you see there belongs to some vitests in another project.

It doesn't detect projects, either:

Image

Additional context

No response

Environment

❯ npx envinfo --preset playwright

  System:
    OS: Linux 5.15 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
    Memory: 26.91 GB / 31.20 GB
    Container: Yes
  Binaries:
    Node: 21.7.3 - /run/user/1000/fnm_multishells/15047_1743811607327/bin/node
    npm: 10.5.0 - /run/user/1000/fnm_multishells/15047_1743811607327/bin/npm
  Languages:
    Bash: 5.2.15 - /usr/bin/bash

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions