Skip to content

New tests not detected #1997

Open
Open

Description

Describe the bug

When adding a new unit test in an existing file, the new test does not get picked up.

Steps to reproduce

  • Try cloning https://github.com/fsprojects/fantomas
  • Open project and file src\Fantomas.Core.Tests\Stroustrup\SynBindingFunctionExpressionTests.fs
  • Wait until you can see test icon for existing tests
  • add a new test like [<Test>] let foo () = ()

Expected behaviour

The new test gets picked up.

Screenshots

image

Machine info

  • OS: Windows
  • .NET SDK version: 8.0.202
  • Ionide version: v7.18.2

Additional context

I noticed @farlee2121 changed the way unit tests are detected in #1874. There no longer seems to be any notification coming from the LSP server.

Is the file being watched for changes? I can't really find any evidence for this in the current code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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