ionide / ionide-vscode-fsharp

VS Code plugin for F# development
http://ionide.io
MIT License
852 stars 277 forks source link

new tests not recognised until project reload #1892

Open C0DK opened 1 year ago

C0DK commented 1 year ago

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

Additional context

N/A

baronfel commented 1 year ago

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.

C0DK commented 1 year ago

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

jkone27 commented 2 months ago

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