ionide-vscode-fsharp icon indicating copy to clipboard operation
ionide-vscode-fsharp copied to clipboard

new tests not recognised until project reload

Open C0DK opened this issue 1 year ago • 3 comments

Describe the bug

I am running a Fsharp console project on VS Code using the Ionide plugin. I added a test file using Nunit. However, when I add a new test to the test file, the test case only gets recognized when I reload the window using the command palette.

(Copy of this issue on stack overflow)

Steps to reproduce

Add additional unit tests in a module utilizing NUnit

Link to sample reproduction

Expected behavior

Test Explorer shows newly added test

Screenshots

image

Machine info

  • OS: Linux (PopOs)
  • .NET SDK version: 6.0.116
  • Ionide version: 7.7.0
  • vscode version 1.75.1 (441438abd1ac652551dbe4d408dfcec8a499b8bf)

Additional context

N/A

C0DK avatar Jul 02 '23 14:07 C0DK

Does the new file get recognized as part of a project in the Solution Explorer? Test parsing only happens on files that are part of a Project, so if that step isn't happening that would explain this behavior.

baronfel avatar Jul 02 '23 16:07 baronfel

Yes. If i have a file, right after starting VSCode the existing tests are shown; if I add a new test, the new one is not as per the following screenshot where I just added Example 3 image

C0DK avatar Jul 03 '23 05:07 C0DK

my tests are not reckognized by vscode all times too, kind of struggling on this one too

jkone27 avatar May 16 '24 13:05 jkone27