Skip to content

Test discovery fails to discover tests and shows strange state in UI #1923

@captainsafia

Description

@captainsafia

Type: Bug

I've started observing that the test explorer seems to fail to discover tests when invoked lazily or on demand via the refresh tests button.

The UI also appears to show the directory name (?) instead of any actual tests:

Image

Test discovery logs:

test-discovery-logs.txt

Environment information

VSCode version: 1.99.0
C# Extension: 2.72.27
Using OmniSharp: false

Dotnet Information .NET SDK: Version: 9.0.200 Commit: 90e8b202f2 Workload version: 9.0.200-manifests.b4a8049f MSBuild version: 17.13.8+cbc39bea8

Runtime Environment:
OS Name: Mac OS X
OS Version: 15.4
OS Platform: Darwin
RID: osx-arm64
Base Path: /Users/captainsafia/git/aspire/acr-resource/.dotnet/sdk/9.0.200/

.NET workloads installed:
There are no installed workloads to display.
Configured to use loose manifests when installing new manifests.

Host:
Version: 9.0.2
Architecture: arm64
Commit: 80aa709f5d

.NET SDKs installed:
9.0.200 [/Users/captainsafia/git/aspire/acr-resource/.dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.13 [/Users/captainsafia/git/aspire/acr-resource/.dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.2 [/Users/captainsafia/git/aspire/acr-resource/.dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.13 [/Users/captainsafia/git/aspire/acr-resource/.dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.2 [/Users/captainsafia/git/aspire/acr-resource/.dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
None

Environment variables:
DOTNET_ROOT [/Users/captainsafia/git/aspire/acr-resource/.dotnet]

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download

Metadata

Metadata

Assignees

Labels

area-aspireIssues impacting .NET Aspire plansarea-testTest discovery, execution, debuggingbugSomething isn't workingmacMacOS

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions