TylerLeonhardt / vscode-pester-test-adapter

MIT License
33 stars 13 forks source link

Invalid pesterExplorer.TestRootDirectory on opening new projet #25

Closed PrzemyslawKlys closed 3 years ago

PrzemyslawKlys commented 3 years ago

So I've opened a new project, it asked me to scan things I pressed Always - and then I was greeted with invalid path + cannot debug (I guess I did it before PowerShell loaded)

image

I already had: "pesterExplorer.testRootDirectory": "Tests", in my config from earlier projects. When I pressed Always "pesterExplorer.autoDiscoverOnOpen": true this was added which is expected. Weirdly enough Tests path exists.

image

Along with this error it detected some other tests - not sure where from 😂

image

The error appears on reopening the project again and again

TylerLeonhardt commented 3 years ago

What happens if you remove the pesterExplorer.testRootDirectory from your settings? You don't need it. It should automatically discover Tests

PrzemyslawKlys commented 3 years ago

After removal, everything works correctly. However, you can set Tests from GUI and it breaks again. Something must be wrong with this setting.

TylerLeonhardt commented 3 years ago

This is what happens when I code too fast... I really need to add tests. Anyway, this is fixed in 0.0.14