Skip to content

Test discovery fails in VS Code #2095

@SeanTAllen

Description

@SeanTAllen

Describe the bug

Test discovery fails.

Ionide reports no tests for any of our projects but when running the dotnet test command directly that appears in the F# Test Adapter output, it finds all the commands.

The last version that this doesn't happen with is 7.26.1. When I switched the extension that version they were found and displayed in VS Code after refresh.

Steps to reproduce

Open our project. Refresh tests. It finds none.

Link to sample reproduction

It is a private repo so I can't provide at the moment.

Expected behaviour

Tests that are found by the command run would be found by ionide.

Screenshots

I can provide if needed

Machine infos

  • OS: Mac
  • .NET SDK version: 9.0.200
  • Ionide versions: This started with 7.26.2. I have verified I see the same 7.26.3.

Additional Context

We were able to reproduce on 3 different machine. All Macs, All with the same .Net SDK and the same project(s).

We have some projects that have tests and some that don't so, it might be possible that this is related.

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